Skip to content

Add schema url to the meta object #280

@e-backmark-ericsson

Description

@e-backmark-ericsson

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

  • Type: String
  • Format: URI
  • Required: No
  • Description: A URI pointing at a location from where the schema used when creating this event can be retrieved. The schema on that URI should be considered immutable.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    protocolAll protocol changes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions