Skip to content

Commit

Permalink
Add error codes to OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Mar 28, 2024
1 parent 818c0b7 commit d8e472a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions swagger/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,13 @@ paths:
schema:
"$ref": "#/components/schemas/ResolutionResult"
'400':
description: invalid input!
description: Invalid DID or DID URL.
'404':
description: DID or DID URL not found.
'406':
description: Representation not supported.
'410':
description: successfully resolved (deactivated)!
description: Successfully resolved, but DID is deactivated.
content:
application/did+json:
schema:
Expand All @@ -108,7 +112,9 @@ paths:
schema:
"$ref": "#/components/schemas/ResolutionResult"
'500':
description: error!
description: Internal Error.
'501':
description: DID method not supported.
"/properties":
get:
summary: Return a map of configuration properties
Expand Down

0 comments on commit d8e472a

Please sign in to comment.