Skip to content

Commit 60e5694

Browse files
authored
Merge pull request #267 from rartych/startsat-optional
Update event-subscription-template.yaml: Attribute startsAt set optional, info and servers object, sinkCredential description
2 parents 9233f83 + 52d754e commit 60e5694

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

artifacts/camara-cloudevents/event-subscription-template.yaml

+8-11
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@ info:
66
77
Note on ``security`` - ``openId`` scope: The value in this yaml `api-name:event-type:grant-level` must be replaced accordingly to the format defined in the guideline document.
88
9-
termsOfService: https://swagger.io/terms/
10-
contact:
11-
129
license:
1310
name: Apache 2.0
1411
url: https://www.apache.org/licenses/LICENSE-2.0.html
15-
version: 0.1.0-wip
12+
version: 0.1.0
13+
x-camara-commonalities: 0.4.0
14+
1615
externalDocs:
1716
description: Product documentation at CAMARA
1817
url: https://github.com/camaraproject/
1918
servers:
20-
- url: "{apiRoot}/{apiName}/v0"
19+
- url: "{apiRoot}/{apiName}/v0.1"
2120
variables:
2221
apiRoot:
2322
default: http://localhost:9091
@@ -298,9 +297,7 @@ components:
298297
description: The address to which events shall be delivered using the selected protocol.
299298
example: "https://endpoint.example.com/sink"
300299
sinkCredential:
301-
allOf:
302-
- description: A sink credential provides authentication or authorization information necessary to enable delivery of events to a target.
303-
- $ref: "#/components/schemas/SinkCredential"
300+
$ref: "#/components/schemas/SinkCredential"
304301
types:
305302
description: |
306303
Camara Event types eligible to be delivered by this subscription.
@@ -359,6 +356,7 @@ components:
359356
Up to API project decision to keep it.
360357
361358
SinkCredential:
359+
description: A sink credential provides authentication or authorization information necessary to enable delivery of events to a target.
362360
type: object
363361
properties:
364362
credentialType:
@@ -452,7 +450,7 @@ components:
452450
description: The detail of the requested event subscription.
453451
type: object
454452

455-
Event-typeNotification:
453+
EventTypeNotification:
456454
type: string
457455
description: |
458456
event-type - Event triggered when an event-type event occurred
@@ -471,7 +469,6 @@ components:
471469
- config
472470
- types
473471
- id
474-
- startsAt
475472
properties:
476473
protocol:
477474
$ref: "#/components/schemas/Protocol"
@@ -556,7 +553,7 @@ components:
556553
source:
557554
$ref: "#/components/schemas/Source"
558555
type:
559-
$ref: "#/components/schemas/Event-typeNotification"
556+
$ref: "#/components/schemas/EventTypeNotification"
560557
specversion:
561558
type: string
562559
description: Version of the specification to which this event conforms (must be 1.0 if it conforms to cloudevents 1.0.2 version)

0 commit comments

Comments
 (0)