Skip to content

Commit

Permalink
Add openapi schema for the unsupported era HTTP error
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed May 20, 2024
1 parent 62905b5 commit 638da7f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5557,6 +5557,26 @@ x-errBlockHeaderNotFound: &errBlockHeaderNotFound
type: string
enum: ['block_header_not_found']

x-errUnsupportedEra: &errUnsupportedEra
<<: *responsesErr
title: unsupported_era
properties:
message:
type: string
code:
type: string
enum: ['unsupported_era']
info:
type: object
required:
- unsupported_era
- supported_eras
properties:
unsupported_era: *ApiEra
supported_eras:
type: array
items: *ApiEra

x-responsesErr400: &responsesErr400
400:
description: Bad Request
Expand Down Expand Up @@ -6015,6 +6035,7 @@ x-responsesPostTransaction: &responsesPostTransaction
- <<: *errTransactionIsTooBig
- <<: *errNoRootKey
- <<: *errWrongEncryptionPassphrase
- <<: *errUnsupportedEra
<<: *responsesErr404WalletNotFound
<<: *responsesErr406
<<: *responsesErr415UnsupportedMediaType
Expand Down

0 comments on commit 638da7f

Please sign in to comment.