-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudevents-v1.0.1-asyncapi-traits.yaml
47 lines (47 loc) · 1.46 KB
/
cloudevents-v1.0.1-asyncapi-traits.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Modified from this sample"
# https://raw.githubusercontent.com/microcks/microcks-quickstarters/main/cloud/cloudevents/cloudevents-v1.0.1-asyncapi-trait.yml
name: cloudevents-headers
summary: Message headers used by CloudEvents spec in binary content mode
headers:
type: object
required:
- ce-specversion
- ce-id
- ce-source
- ce-type
properties:
ce-specversion:
type: string
description: The version of the CloudEvents specification which the event uses.
enum:
- "1.0"
ce-id:
type: string
minLength: 1
description: Identifies the event.
ce-source:
type: string
format: uri-reference
minLength: 1
description: Identifies the context in which an event happened.
ce-type:
type: string
minLength: 1
description: Describes the type of event related to the originating occurrence.
ce-datacontenttype:
type: string
description: Content type of the data value. Must adhere to RFC 2046 format.
ce-dataschema:
type: string
description: Identifies the schema that data adheres to.
ce-subject:
type: string
description: Describes the subject of the event in the context of the event producer (identified by source).
ce-time:
type: string
format: date-time
description: Timestamp of when the occurrence happened. Must adhere to RFC 3339.
content-type:
type: string
enum:
- application/json