Open lollol155 opened 2 weeks ago
please give it a try with the latest master as we recently merged a fix
snapshot version can be found in project's readme
Same output on 7.6.0-SNAPSHOT :(
Many scenarios with oneOf and Arrays work, but this specific scenario fails for me. But i managed to make a smaller example. It happens already with a oneOf in a oneOf
myModel:
type: object
properties:
value:
oneOf:
- oneOf:
- type: number
format: double
- type: number
format: float
- type: string
log.debug("{}", new MyModel().value(new MyModelValue(new MyModelValueOneOf(10d)).toJson()));
looks like such use case is not yet supported at the moment.
would you have time to contribute a PR to support this use case? I can show you some good starting points.
That would be fun to give a try.
Description
to json functions gives the wrong output
openapi-generator version
7.5.0 -> no library defined
OpenAPI declaration file content or url
The following Yaml
With the following Java
gives:
Where i would expect