-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add schema url to the meta object #280
Comments
This is how schema uri's are defined for Cloudevents: https://github.com/cloudevents/spec/blob/master/spec.md#dataschema |
It should be mentioned in the Description section that the reason for this proposal is not just a convenient factor or event versioning matter as much as a need to refine the implementation/usage of the Eiffel protocol aka. Protocol Profiling. |
Oh. URI or URL. Well, there seems to be some confusion on that allover the place. We probably most often expect a URI to also be a URL, i.e. an identifier that also tells you how to get hold of it. We've however used URI allover the protocol until now, so I think we should stick to that. |
👍 |
Added property 'meta.schemaUri' to JSON schemas of Eiffel events. Minor version number of all events increased accordingly.
Added property 'meta.schemaUri' to JSON schemas of Eiffel events. Minor version number of all events increased accordingly.
Description
To be able to correctly parse the event data it is critical to know exactly what version was used when creating it. We already have the mandatory meta.version property which should cater for this. For convenience we should also have the possibility to provide an immutable url from where the schema used when creating that event can be fetched. I propose to add an optional meta.schemaUri for this purpose.
meta.schemaUri
Motivation
Event consumers can retrieve the schema used for creating the event, to be used for validation, parsing and extraction purposes.
Exemplification
meta.schemaUri = "https://mySchemaHost.com/schema/EiffelArtifactCreatedEvent/versions/3.1.0"
Benefits
Easier for event consumers to parse the event data. No need to locally store copies of event schemas in each consumer.
Possible Drawbacks
As it is optional there should be no drawbacks
The text was updated successfully, but these errors were encountered: