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

Lack of configuration option in ‘Swagger Gradle Plugin’, which allows to specify discriminator and discriminator mapping #4599

Open
ideas-into-software opened this issue Jan 22, 2024 · 0 comments

Comments

@ideas-into-software
Copy link

Currently, to the best of my knowledge, there is no configuration option in ‘Swagger Gradle Plugin’ (https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-gradle-plugin/README.md), which allows to specify discriminator and discriminator mapping – required in models with class inheritance. E.g. in models based on the ‘GeoJSON’ standard (https://geojson.org/), Swagger does not have sufficient information on how to map Geometry sub-types such as Point, LineString, Polygon, etc.

I do realize Swagger Annotations can be used in such cases to add discriminator and discriminator-mapping, but our model code is generated off EMF Ecore, therefore we cannot include any custom annotations as these would get overwritten on each build; see eclipse-emf/org.eclipse.emf#27 for more details.

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