You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple changes in the Ecore2AsyncApi transformation:
* Update README.md file to keep it consistent.
* Add annotation and support custom names for Messages and Schemas.
* Add annotation and support for titles in Schemas and properties.
* Add annotation and support for parameters in Channel names.
It is possible to generate an skeleton AsyncAPI Specification from an Ecore model. The generator will create a reusable JSON Schema for each domain class. Channels will be created out of annotated EClasses. Moreover, hosts information can also be specified via EAnnotations. Currently, the following EAnnotations are allowed:
300
300
301
301
302
-
| Ecore Element | EAnnotation Source | Description
| EPackage | `http://io.github.abelgomez/asyncapi/eAnnotations/Server` | List of Servers. Expect entries: `name` (Server name), `url` (Server url, including port) and `protocol` (AsyncAPI supported protocol).
305
-
| EClass | `http://io.github.abelgomez/asyncapi/eAnnotations/Channel` | The EClass represents the Payload of a given Channel. Expected entries: `name` (Channel name), `description` (Channel description), `publish` (publish `operationId`) and `subscribe` (subscribe `operationId`).
302
+
| Ecore Element | EAnnotation Source | Description
| EPackage | `http://io.github.abelgomez/asyncapi/eAnnotations/Server` | List of Servers. Expect entries: `name` (Server name), `url` (Server url, including port) and `protocol` (AsyncAPI supported protocol).
305
+
| EClass | `http://io.github.abelgomez/asyncapi/eAnnotations/Channel` | The EClass represents the Payload of a given Channel. Expected entries: `name` (Channel name), `description` (Channel description), `publish` (publish `operationId`) and `subscribe` (subscribe `operationId`).
306
+
| EClass | `http://io.github.abelgomez/asyncapi/eAnnotations/Message` | The EClass represents the Payload of a given Message. Expected entries: `name` (Message name).
307
+
| EClass | `http://io.github.abelgomez/asyncapi/eAnnotations/Schema` | The EClass represents a Payload. Expected entries: `name` (Schema name), `title` (Friendly name of the Schema).
308
+
| EStructuralFeature | `http://io.github.abelgomez/asyncapi/eAnnotations/Schema` | The EStructuralFeature is a property part of a Payload. Expected entries: `title` (Friendly name for the property).
306
309
307
310
This is a possible example Ecore file demonstrating these annotations:
0 commit comments