Skip to content

Commit

Permalink
Merge pull request #267 from rartych/startsat-optional
Browse files Browse the repository at this point in the history
Update event-subscription-template.yaml: Attribute startsAt set optional, info and servers object, sinkCredential description
  • Loading branch information
PedroDiez authored Aug 7, 2024
2 parents 9233f83 + 52d754e commit 60e5694
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions artifacts/camara-cloudevents/event-subscription-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ info:
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.
termsOfService: https://swagger.io/terms/
contact:
email: [email protected]
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 0.1.0-wip
version: 0.1.0
x-camara-commonalities: 0.4.0

externalDocs:
description: Product documentation at CAMARA
url: https://github.com/camaraproject/
servers:
- url: "{apiRoot}/{apiName}/v0"
- url: "{apiRoot}/{apiName}/v0.1"
variables:
apiRoot:
default: http://localhost:9091
Expand Down Expand Up @@ -298,9 +297,7 @@ components:
description: The address to which events shall be delivered using the selected protocol.
example: "https://endpoint.example.com/sink"
sinkCredential:
allOf:
- description: A sink credential provides authentication or authorization information necessary to enable delivery of events to a target.
- $ref: "#/components/schemas/SinkCredential"
$ref: "#/components/schemas/SinkCredential"
types:
description: |
Camara Event types eligible to be delivered by this subscription.
Expand Down Expand Up @@ -359,6 +356,7 @@ components:
Up to API project decision to keep it.
SinkCredential:
description: A sink credential provides authentication or authorization information necessary to enable delivery of events to a target.
type: object
properties:
credentialType:
Expand Down Expand Up @@ -452,7 +450,7 @@ components:
description: The detail of the requested event subscription.
type: object

Event-typeNotification:
EventTypeNotification:
type: string
description: |
event-type - Event triggered when an event-type event occurred
Expand All @@ -471,7 +469,6 @@ components:
- config
- types
- id
- startsAt
properties:
protocol:
$ref: "#/components/schemas/Protocol"
Expand Down Expand Up @@ -556,7 +553,7 @@ components:
source:
$ref: "#/components/schemas/Source"
type:
$ref: "#/components/schemas/Event-typeNotification"
$ref: "#/components/schemas/EventTypeNotification"
specversion:
type: string
description: Version of the specification to which this event conforms (must be 1.0 if it conforms to cloudevents 1.0.2 version)
Expand Down

0 comments on commit 60e5694

Please sign in to comment.