Bug Report Checklist
Description
OneOf interfaces that should use string+uri as discriminator only use String, which causes a type mismatch because the discriminator is being generated as URI in the classes.
openapi-generator version
7.5.0
OpenAPI declaration file content or url
https://gist.github.com/Kaemmelot/ad720f03f4f536bb0f54ec281e02479d
Generation Details
java -jar openapi-generator-cli-7.5.0.jar generate -i api.yml -g spring
Steps to reproduce
see Gist above, PetResponse has a wrong type for getPetType()
Related issues/PRs
did not find any
Suggest a fix
It could be that the format of the type is not taken into account when generating such a oneOf interface.
Bug Report Checklist
Description
OneOf interfaces that should use string+uri as discriminator only use String, which causes a type mismatch because the discriminator is being generated as URI in the classes.
openapi-generator version
7.5.0
OpenAPI declaration file content or url
https://gist.github.com/Kaemmelot/ad720f03f4f536bb0f54ec281e02479d
Generation Details
java -jar openapi-generator-cli-7.5.0.jar generate -i api.yml -g springSteps to reproduce
see Gist above, PetResponse has a wrong type for
getPetType()Related issues/PRs
did not find any
Suggest a fix
It could be that the format of the type is not taken into account when generating such a oneOf interface.