Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useTimeType could not be set in gradle configuration #339

Open
slin86 opened this issue Apr 18, 2024 · 0 comments
Open

useTimeType could not be set in gradle configuration #339

slin86 opened this issue Apr 18, 2024 · 0 comments

Comments

@slin86
Copy link

slin86 commented Apr 18, 2024

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant