Skip to content

Commit 3280d0b

Browse files
authored
Merge pull request #404 from dfischer-tech/main
Add note and change descriptions for date-time formats
2 parents 95eb009 + 0d753db commit 3280d0b

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

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

+27-5
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ components:
346346
- PLAIN
347347
- ACCESSTOKEN
348348
- REFRESHTOKEN
349-
description: "The type of the credential."
349+
description: |
350+
The type of the credential.
351+
Note: Type of the credential - MUST be set to ACCESSTOKEN for now
350352
discriminator:
351353
propertyName: credentialType
352354
mapping:
@@ -384,7 +386,13 @@ components:
384386
accessTokenExpiresUtc:
385387
type: string
386388
format: date-time
387-
description: REQUIRED. An absolute (UTC) timestamp at which the token shall be considered expired. In the case of an ACCESS_TOKEN_EXPIRED termination reason, implementation should notify the client before the expiration date.
389+
description: |
390+
REQUIRED. An absolute (UTC) timestamp at which the token shall be considered expired.
391+
In the case of an ACCESS_TOKEN_EXPIRED termination reason, implementation should notify the client before the expiration date.
392+
If the access token is a JWT and registered "exp" (Expiration Time) claim is present, the two expiry times should match.
393+
It must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
394+
Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
395+
example: "2023-07-03T12:27:08.312Z"
388396
accessTokenType:
389397
description: REQUIRED. Type of the access token (See [OAuth 2.0](https://tools.ietf.org/html/rfc6749#section-7.1)).
390398
type: string
@@ -407,7 +415,13 @@ components:
407415
accessTokenExpiresUtc:
408416
type: string
409417
format: date-time
410-
description: REQUIRED. An absolute UTC instant at which the token shall be considered expired.
418+
description: |
419+
REQUIRED. An absolute (UTC) timestamp at which the token shall be considered expired.
420+
In the case of an ACCESS_TOKEN_EXPIRED termination reason, implementation should notify the client before the expiration date.
421+
If the access token is a JWT and registered "exp" (Expiration Time) claim is present, the two expiry times should match.
422+
It must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
423+
Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
424+
example: "2023-07-03T12:27:08.312Z"
411425
accessTokenType:
412426
description: REQUIRED. Type of the access token (See [OAuth 2.0](https://tools.ietf.org/html/rfc6749#section-7.1)).
413427
type: string
@@ -484,11 +498,19 @@ components:
484498
startsAt:
485499
type: string
486500
format: date-time
487-
description: Date when the event subscription will begin/began
501+
description: |
502+
Date when the event subscription will begin/began
503+
It must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
504+
Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
505+
example: "2023-07-03T12:27:08.312Z"
488506
expiresAt:
489507
type: string
490508
format: date-time
491-
description: Date when the event subscription will expire. Only provided when `subscriptionExpireTime` is indicated by API client or Telco Operator has specific policy about that.
509+
description: |
510+
Date when the event subscription will expire. Only provided when `subscriptionExpireTime` is indicated by API client or Telco Operator has specific policy about that.
511+
It must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
512+
Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
513+
example: "2023-07-03T12:27:08.312Z"
492514
status:
493515
type: string
494516
description: |-

0 commit comments

Comments
 (0)