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
Today all event schemas contain the fields id, source and type in their subject objects, but they are not all described in the corresponding event specific md file. They are explained in the spec.md file, but that is not obvious when reading the event specific md.
It should also be clarified what fields in the subject object are mandatory and not, and what fields have default values.
The type field should maybe have the format of an enum with only one valid value, which should then also be the default value of the type.
The text was updated successfully, but these errors were encountered:
Improve the spec of subject fields for all events:
- link id and source to their spec definitions
- add the type, linked to its spec definition
- include the value of the type for each event
Improve the jsonschema by constraining the subject
type field to the only valid value for each event.
Since all events have been patched already in
v0.2-draft, there's not need to +1 the version
number again within the same spec release.
Fixes: cdevents#113
Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
Today all event schemas contain the fields
id
,source
andtype
in theirsubject
objects, but they are not all described in the corresponding event specific md file. They are explained in the spec.md file, but that is not obvious when reading the event specific md.It should also be clarified what fields in the
subject
object are mandatory and not, and what fields have default values.The
type
field should maybe have the format of an enum with only one valid value, which should then also be the default value of thetype
.The text was updated successfully, but these errors were encountered: