Skip to content

Commit

Permalink
tighten up the headers to reflect conformance requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
caindy committed Mar 16, 2024
1 parent 849bad1 commit 9a23b07
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/_data/openapi-split.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ components:
Accept:
schema:
type: string
format: mime-type-header
pattern: '^((application\/vnd\.trolie\.(?:[a-z-]+)\.v\d+\+json(;q=(0\.\d+|1\.0))?))(\,\s*(application\/vnd\.trolie\.(?:[a-z-]+)\.v\d+\+json(;q=(0\.\d+|1\.0))?))*$'
examples:
"Forecast Proposal":
summary: Used to update the area-wide forecast
Expand All @@ -289,11 +289,13 @@ components:
summary: Used to update the area-wide nowcast
value: "application/vnd.trolie.rating-realtime-proposal.v1+json"
Accept-Encoding:
description: |
The server must support and prefer Brotli yet must accept gzip for
compatibility.
schema:
type: string
format: mime-type-header
description: List of content encoding formats the server accepts.
example: "br,gzip"
enum:
- "br,gzip"
content: *problem
'422-problem':
<<: *rate-limited
Expand Down

0 comments on commit 9a23b07

Please sign in to comment.