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

[REQ] Property requirements/restrictions not included in generated AsciiDoc files #11389

Open
lfvjimisola opened this issue Jan 24, 2022 · 1 comment

Comments

@lfvjimisola
Copy link

lfvjimisola commented Jan 24, 2022

Is your feature request related to a problem? Please describe.

Property restrictions (maxLength, minLength, etc) should be used included in the generated AsciiDoc file(s).

Describe the solution you'd like

Property requirements/restrictions to generated files.

For relevant requirements/restrictions see: https://swagger.io/specification/#schema-object

Describe alternatives you've considered

We could theoretically add these manually but it's not practical as we want this fully automated.

Additional context

It is unclear whether:

  1. the properties aren't read from openapi.json and available for the template engine (mustaché)
  2. the AsciiDoc template simply has to be updated
@lfvjimisola
Copy link
Author

Verified that the model contains JSON Schema including minimum, maximum, minLength, maxLength etc using:

java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -t modules/openapi-generator/src/main/resources/asciidoc-documentation -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g asciidoc --global-property debugOperations=true,debugModels=true > ~/model.json

So, the AsciiDoc template that has to be updated. Are there other AsciiDoc templates already perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant