-
Notifications
You must be signed in to change notification settings - Fork 32
Common Design Model for Cloud Event datacontenttype field #192
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem description
API Design Guidelines requirement is that datacontenttype field is media-type that describes the event payload encoding, must be application/json for CAMARA APIs
In https://github.com/camaraproject/Commonalities/blob/main/artifacts/notification-as-cloud-event.yaml it is defined as follows:
datacontenttype:
type: string
description: 'media-type that describes the event payload encoding, must be "application/json" for CAMARA APIs'
Possible evolution
Define required value as enum - as the only possible value is "application/json"
Alternative solution
Additional context
The similar specversion field is defined as enum with PR:
The datacontenttype field is optional , specversion field is mandatory
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request