Skip to content

Commit

Permalink
Merge pull request #212 from trolie/fix-retry-after-parsing-warnings
Browse files Browse the repository at this point in the history
use single Retry-After schema
  • Loading branch information
getorymckeag authored Nov 15, 2024
2 parents 368aefb + 5445e09 commit ea5a45a
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions docs/_spec/openapi-split.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,20 +436,12 @@ components:
maximum: 1000
Retry-After:
schema:
type: object
oneOf:
- type: integer
format: int32
minimum: 0
maximum: 60
example: 60
description: The seconds to delay after the response is received.
# TODO: the HTTP spec allows for this but we probably should not support it
- type: string
pattern: "^[A-Z][a-z]{2}, \\d{2} [A-Z][a-z]{2} \\d{4} \\d{2}:\\d{2}:\\d{2} GMT$"
maxLength: 30
example: 'Wed, 21 Oct 2022 07:28:00 GMT'
description: A date after which to retry.
type: integer
format: int32
minimum: 0
maximum: 60
example: 60
description: The seconds to delay after the response is received.
securitySchemes:
oauth2-primary-flow:
type: oauth2
Expand Down

0 comments on commit ea5a45a

Please sign in to comment.