Skip to content

Commit 95de5cb

Browse files
OAS Update
1 parent 7387ad1 commit 95de5cb

File tree

1 file changed

+104
-22
lines changed

1 file changed

+104
-22
lines changed

services/cost/v3/cost.json

Lines changed: 104 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -422,18 +422,43 @@
422422
"title": "V3 Summarized Service Costs",
423423
"type": "object"
424424
},
425-
"defaultError": {
426-
"description": "A standard error object.",
425+
"authErrorResponse": {
427426
"properties": {
428-
"code": {
427+
"error": {
429428
"type": "string"
430429
},
431430
"message": {
432431
"type": "string"
432+
},
433+
"path": {
434+
"type": "string"
435+
},
436+
"status": {
437+
"format": "int32",
438+
"type": "integer"
439+
},
440+
"timeStamp": {
441+
"format": "date-time",
442+
"type": "string"
443+
}
444+
},
445+
"required": [
446+
"timeStamp",
447+
"path",
448+
"status",
449+
"error",
450+
"message"
451+
],
452+
"type": "object"
453+
},
454+
"errorResponse": {
455+
"properties": {
456+
"msg": {
457+
"type": "string"
433458
}
434459
},
435460
"required": [
436-
"code"
461+
"msg"
437462
],
438463
"title": "Error",
439464
"type": "object"
@@ -515,26 +540,45 @@
515540
"description": "OK"
516541
},
517542
"400": {
543+
"content": {
544+
"application/json": {
545+
"schema": {
546+
"$ref": "#/components/schemas/errorResponse"
547+
}
548+
},
549+
"text/csv": {
550+
"schema": {
551+
"type": "string"
552+
}
553+
}
554+
},
518555
"description": "Bad request"
519556
},
520557
"401": {
521558
"content": {
522559
"application/json": {
523560
"schema": {
524-
"type": "object"
561+
"$ref": "#/components/schemas/authErrorResponse"
525562
}
526563
}
527564
},
528565
"description": "Unauthorized"
529566
},
530-
"404": {
531-
"description": "Customer account not found"
567+
"403": {
568+
"content": {
569+
"application/json": {
570+
"schema": {
571+
"$ref": "#/components/schemas/authErrorResponse"
572+
}
573+
}
574+
},
575+
"description": "Forbidden"
532576
},
533-
"default": {
577+
"404": {
534578
"content": {
535579
"application/json": {
536580
"schema": {
537-
"$ref": "#/components/schemas/defaultError"
581+
"$ref": "#/components/schemas/errorResponse"
538582
}
539583
},
540584
"text/csv": {
@@ -543,7 +587,7 @@
543587
}
544588
}
545589
},
546-
"description": "Not Implemented"
590+
"description": "Not found"
547591
}
548592
},
549593
"summary": "V3 Costs for all projects",
@@ -636,26 +680,45 @@
636680
"description": "OK"
637681
},
638682
"400": {
683+
"content": {
684+
"application/json": {
685+
"schema": {
686+
"$ref": "#/components/schemas/errorResponse"
687+
}
688+
},
689+
"text/csv": {
690+
"schema": {
691+
"type": "string"
692+
}
693+
}
694+
},
639695
"description": "Bad request"
640696
},
641697
"401": {
642698
"content": {
643699
"application/json": {
644700
"schema": {
645-
"type": "object"
701+
"$ref": "#/components/schemas/authErrorResponse"
646702
}
647703
}
648704
},
649705
"description": "Unauthorized"
650706
},
651-
"404": {
652-
"description": "Customer account not found"
707+
"403": {
708+
"content": {
709+
"application/json": {
710+
"schema": {
711+
"$ref": "#/components/schemas/authErrorResponse"
712+
}
713+
}
714+
},
715+
"description": "Forbidden"
653716
},
654-
"default": {
717+
"404": {
655718
"content": {
656719
"application/json": {
657720
"schema": {
658-
"$ref": "#/components/schemas/defaultError"
721+
"$ref": "#/components/schemas/errorResponse"
659722
}
660723
},
661724
"text/csv": {
@@ -664,7 +727,7 @@
664727
}
665728
}
666729
},
667-
"description": "Not Implemented"
730+
"description": "Not found"
668731
}
669732
},
670733
"summary": "V3 Costs for all projects of all related sub-customers",
@@ -754,26 +817,45 @@
754817
"description": "OK"
755818
},
756819
"400": {
820+
"content": {
821+
"application/json": {
822+
"schema": {
823+
"$ref": "#/components/schemas/errorResponse"
824+
}
825+
},
826+
"text/csv": {
827+
"schema": {
828+
"type": "string"
829+
}
830+
}
831+
},
757832
"description": "Bad request"
758833
},
759834
"401": {
760835
"content": {
761836
"application/json": {
762837
"schema": {
763-
"type": "object"
838+
"$ref": "#/components/schemas/authErrorResponse"
764839
}
765840
}
766841
},
767842
"description": "Unauthorized"
768843
},
769-
"404": {
770-
"description": "Customer account or project not found"
844+
"403": {
845+
"content": {
846+
"application/json": {
847+
"schema": {
848+
"$ref": "#/components/schemas/authErrorResponse"
849+
}
850+
}
851+
},
852+
"description": "Forbidden"
771853
},
772-
"default": {
854+
"404": {
773855
"content": {
774856
"application/json": {
775857
"schema": {
776-
"$ref": "#/components/schemas/defaultError"
858+
"$ref": "#/components/schemas/errorResponse"
777859
}
778860
},
779861
"text/csv": {
@@ -782,7 +864,7 @@
782864
}
783865
}
784866
},
785-
"description": "Not Implemented"
867+
"description": "Not found"
786868
}
787869
},
788870
"summary": "V3 Costs for a certain project",

0 commit comments

Comments
 (0)