Skip to content

useTimeType could not be set in gradle configuration #339

@slin86

Description

@slin86

We try to overwrite the timetype from LOCAL to ZONED. In documentation is mentioned, that we could overwrite it in build.gradle on same position as ids, apimodel, etc. could be configured.

But if we set it, then we get the message:

Could not set unknown property 'useTimeType' for object of type com.sngular.api.generator.plugin.model.OperationParameter.

The OperationParameter.java also does not contain the parameter:

class OperationParameter {

  String ids

  String apiPackage

  String modelPackage

  String modelNameSuffix

  String classNamePostfix

Is there a reason why this property is not set here?

Configuration looks like:

asyncapimodel {

    specFile {
        {
            filePath = "$rootDir/apis/async/service.yaml"
            consumer {
                 ids = '....'
                apiPackage = 'de.abc.events'
                modelPackage = 'de.abc.events.model'
                useTimeType = TimeType.ZONED
            }
        }
    }
    overWriteModel = true
    springBootVersion = 3
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions