-
Notifications
You must be signed in to change notification settings - Fork 28
Mechanism to pass down custom Java annotations to code generated off EMF Ecore #27
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, there is no mechanism to pass down custom ( non-EMF ) Java annotations to code generated off EMF Ecore.
Usage of such code generated off EMF model prevents utilization of e.g. Swagger Annotations to generate OpenAPI specification dynamically.
Especially in the case of EMF model based on the ‘GeoJSON’ standard, lack of such feature in EMF itself makes it impossible for Swagger generator to even find Geometry sub-types (e.g. Point, Polygon, LineString, etc.) and serialization / deserialization to work properly, as Swagger requires so called discriminator and discriminator mapping in models utilizing class inheritance.
More info
-
“Swagger”
- “OpenAPI Specification”: https://swagger.io/specification/
- “oneOf, anyOf, allOf, not: allOf”: https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/#allof
- “Inheritance and Polymorphism”: https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/
-
“OpenAPI Generator”: https://openapi-generator.tech/
-
“GeoJSON”: https://geojson.org/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
