Skip to content

Commit a9cbb8a

Browse files
authored
Merge pull request #27 from ChinaUnicomXiaoDongrui/main
update the yaml file about esim-remote-management api
2 parents 4e0c60f + 9cb455a commit a9cbb8a

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

‎code/API_definitions/esim-remote-management.yaml‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ components:
253253
type: string
254254
format: date-time
255255
maxLength: 64
256-
description: Request timestamp in ISO 8601 format
256+
description: Request timestamp must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
257257
sequenceNum:
258258
type: string
259259
pattern: "^[a-zA-Z0-9_\\-]{1,64}$"
@@ -340,13 +340,15 @@ components:
340340
$ref: '#/components/schemas/Protocol'
341341
sink:
342342
type: string
343+
pattern: "^https?://[a-zA-Z0-9\\-._~:/?#\\[\\]@!$&'()*+,;=]{1,256}$"
343344
maxLength: 256
344345
description: Callback address (sink address for notification reception)
345346
types:
346347
type: array
347348
maxItems: 10
348349
items:
349350
type: string
351+
pattern: "^[a-zA-Z0-9_\\-]{1,64}$"
350352
maxLength: 64
351353
description: Event type identifier
352354
description: List of subscribed event types
@@ -394,7 +396,7 @@ components:
394396
type: string
395397
format: date-time
396398
maxLength: 32
397-
description: Subscription expiration time in ISO 8601 format
399+
description: Request timestamp must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
398400
BaseCmpRespProfileOperResp:
399401
type: object
400402
description: Response body for profile operation
@@ -407,6 +409,7 @@ components:
407409
description: Response code
408410
message:
409411
type: string
412+
pattern: "^[\\s\\S]{0,256}$"
410413
maxLength: 256
411414
description: Response message
412415
config:
@@ -453,7 +456,7 @@ components:
453456
type: string
454457
format: date-time
455458
maxLength: 32
456-
description: Subscription expiration time in ISO 8601 format
459+
description: Request timestamp must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
457460
BaseCmpReqEidProfileListReq:
458461
type: object
459462
description: Request body for querying profile list
@@ -462,7 +465,7 @@ components:
462465
type: string
463466
format: date-time
464467
maxLength: 64
465-
description: Request timestamp in ISO 8601 format
468+
description: Request timestamp must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
466469
sequenceNum:
467470
type: string
468471
pattern: "^[a-zA-Z0-9_\\-]{1,64}$"
@@ -548,13 +551,15 @@ components:
548551
$ref: '#/components/schemas/Protocol'
549552
sink:
550553
type: string
554+
pattern: "^https?://[a-zA-Z0-9\\-._~:/?#\\[\\]@!$&'()*+,;=]{1,256}$"
551555
maxLength: 256
552556
description: Callback address (sink address for notification reception)
553557
types:
554558
type: array
555559
maxItems: 10
556560
items:
557561
type: string
562+
pattern: "^[a-zA-Z0-9_\\-]{1,64}$"
558563
maxLength: 64
559564
description: Event type identifier
560565
description: List of subscribed event types
@@ -602,7 +607,7 @@ components:
602607
type: string
603608
format: date-time
604609
maxLength: 32
605-
description: Subscription expiration time in ISO 8601 format
610+
description: Request timestamp must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
606611
BaseCmpRespProfileDownloadResp:
607612
type: object
608613
description: Response body for profile download
@@ -615,6 +620,7 @@ components:
615620
description: Response code
616621
message:
617622
type: string
623+
pattern: "^[\\s\\S]{0,256}$"
618624
maxLength: 256
619625
description: Response message
620626
config:
@@ -661,7 +667,7 @@ components:
661667
type: string
662668
format: date-time
663669
maxLength: 32
664-
description: Subscription expiration time in ISO 8601 format
670+
description: Request timestamp must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.
665671
XCorrelator:
666672
type: string
667673
maxLength: 256
@@ -691,10 +697,12 @@ components:
691697
description: HTTP response status code
692698
code:
693699
type: string
700+
pattern: "^[A-Z_]{1,96}$"
694701
maxLength: 96
695702
description: A human-readable code to describe the error
696703
message:
697704
type: string
705+
pattern: "^[\\s\\S]{0,256}$"
698706
maxLength: 512
699707
description: A human-readable description of what the event represents
700708
responses:

0 commit comments

Comments
 (0)