Skip to content

Commit 80db576

Browse files
authored
style: rename object returned with error (#65)
1 parent 46f23fd commit 80db576

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

ipfs-pinning-service.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ components:
461461
example:
462462
status_details: "Queue position: 7 of 9" # PinStatus.info[status_details], when status=queued
463463

464-
Error:
465-
description: Error object
464+
Failure:
465+
description: Response for a failed request
466466
type: object
467467
required:
468468
- error
@@ -573,7 +573,7 @@ components:
573573
content:
574574
application/json:
575575
schema:
576-
$ref: '#/components/schemas/Error'
576+
$ref: '#/components/schemas/Failure'
577577
examples:
578578
BadRequestExample:
579579
$ref: '#/components/examples/BadRequestExample'
@@ -583,7 +583,7 @@ components:
583583
content:
584584
application/json:
585585
schema:
586-
$ref: '#/components/schemas/Error'
586+
$ref: '#/components/schemas/Failure'
587587
examples:
588588
UnauthorizedExample:
589589
$ref: '#/components/examples/UnauthorizedExample'
@@ -593,7 +593,7 @@ components:
593593
content:
594594
application/json:
595595
schema:
596-
$ref: '#/components/schemas/Error'
596+
$ref: '#/components/schemas/Failure'
597597
examples:
598598
NotFoundExample:
599599
$ref: '#/components/examples/NotFoundExample'
@@ -603,7 +603,7 @@ components:
603603
content:
604604
application/json:
605605
schema:
606-
$ref: '#/components/schemas/Error'
606+
$ref: '#/components/schemas/Failure'
607607
examples:
608608
InsufficientFundsExample:
609609
$ref: '#/components/examples/InsufficientFundsExample'
@@ -613,7 +613,7 @@ components:
613613
content:
614614
application/json:
615615
schema:
616-
$ref: '#/components/schemas/Error'
616+
$ref: '#/components/schemas/Failure'
617617
examples:
618618
CustomServiceErrorExample:
619619
$ref: '#/components/examples/CustomServiceErrorExample'
@@ -623,7 +623,7 @@ components:
623623
content:
624624
application/json:
625625
schema:
626-
$ref: '#/components/schemas/Error'
626+
$ref: '#/components/schemas/Failure'
627627
examples:
628628
InternalServerErrorExample:
629629
$ref: '#/components/examples/InternalServerErrorExample'

0 commit comments

Comments
 (0)