We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
direct usage of allOf destroyes the example of a property with type object without further properties.
allOf
example
object
expected output (with v7.4.0)
yaml
example: someMeaningfulNumber: 25009779801
java
String exampleString = "{ \"data\" : { \"someMeaningfulNumber\" : 25009779801 }, \"someProperty\" : \"someProperty\" }";
failing output (>7.4.0)
example: data: "{\"someMeaningfulNumber\":25009779801}"
String exampleString = "{ \"data\" : \"{\\"someMeaningfulNumber\\":25009779801}\", \"someProperty\" : \"someProperty\" }";
the generated yaml can't be used for further generation. the generated java code doesn't compile.
7.4.0 -> OK 7.5.0 -> fail 7.6.0 -> fail 7.7.0 -> fail
https://github.com/kingofdisasterr/openapi-generator-example/blob/main/src/main/resources/yaml/someinterface.yaml
full project: https://github.com/kingofdisasterr/openapi-generator-example
mvn clean verifyof https://github.com/kingofdisasterr/openapi-generator-example/blob/main/pom.xml
mvn clean verify
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report Checklist
Description
direct usage of
allOf
destroyes theexample
of a property with typeobject
without further properties.expected output (with v7.4.0)
yaml
java
failing output (>7.4.0)
yaml
java
the generated yaml can't be used for further generation. the generated java code doesn't compile.
openapi-generator version
7.4.0 -> OK
7.5.0 -> fail
7.6.0 -> fail
7.7.0 -> fail
OpenAPI declaration file content or url
https://github.com/kingofdisasterr/openapi-generator-example/blob/main/src/main/resources/yaml/someinterface.yaml
full project:
https://github.com/kingofdisasterr/openapi-generator-example
Generation Details
mvn clean verify
of https://github.com/kingofdisasterr/openapi-generator-example/blob/main/pom.xmlThe text was updated successfully, but these errors were encountered: