Skip to content

Commit

Permalink
add 415 response to forecast PATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
caindy committed Mar 16, 2024
1 parent 06e1910 commit 226c2c7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
,"mrid"
,"MVAR"
,"NERC"
,"nowcast"
,"openapi"
,"overvoltage"
,"owasp"
Expand Down
28 changes: 24 additions & 4 deletions docs/_data/openapi-split.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ components:

'400': &malformed
<<: *rate-limited
description: Malformed request.
description: Malformed request
'401': &unauthorized
<<: *rate-limited
description: Unauthorized
Expand All @@ -227,10 +227,10 @@ components:
description: Not Found
'406': &not-acceptable
<<: *rate-limited
description: Not Acceptable. (Content negotiation failed)
description: Not Acceptable (Content negotiation failed)
'410': &gone
<<: *rate-limited
description: Gone.
description: Gone
'429': &rate-limit-hit
description: Too many requests (rate limiting)
headers:
Expand Down Expand Up @@ -271,8 +271,28 @@ components:
content: *empty
'413-empty':
<<: *rate-limited
description: Payload too large!
description: Payload too large
content: *empty
'415-problem':
description: Unsupported media type
headers:
<<: *rate-limited-headers
Accept:
schema:
type: string
examples:
"Forecast Proposal":
summary: Used to update the area-wide forecast
value: "application/vnd.trolie.rating-forecast-proposal.v1+json"
"Real-Time Proposal":
summary: Used to update the area-wide nowcast
value: "application/vnd.trolie.rating-realtime-proposal.v1+json"
Accept-Encoding:
schema:
type: string
description: List of content encoding formats the server accepts.
example: "br,gzip"
content: *problem
'422-problem':
<<: *rate-limited
description: Unprocessable content
Expand Down
2 changes: 2 additions & 0 deletions docs/_data/paths/rating-proposals_forecasts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ patch:
$ref: '../openapi-split.yaml#/components/responses/304/headers'
'413':
$ref: '../openapi-split.yaml#/components/responses/413-empty'
'415':
$ref: '../openapi-split.yaml#/components/responses/415-problem'
'422':
description: Unprocessable Content
content:
Expand Down

0 comments on commit 226c2c7

Please sign in to comment.