-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Reference Response headers Open API v3.0 #1586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Note that you can only openapi: 3.0.1
...
paths:
/:
get:
responses:
'200':
description: OK
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
components:
headers:
X-RateLimit-Limit:
description: Request limit per hour
schema:
type: integer
example: 100
X-RateLimit-Remaining:
schema:
type: integer
example: 94 Hope this helps! |
Oh it's a Map. For what ever reason the Map in the type column in specs just didn't register in my brain. Possibly in a future revision the headers for the requests could be an array. would be nicer to have to do 1 line per header instead of 2. |
@hkosova You said >>>"Note that you can only |
@bolshoydi you can't, you can only |
@hkosova I see that some of those feature requests have been around for three years. Excuse my ignorance of how the process works, but how long does it typically take for feature requests to be considered? Any idea whether these are active or dead? Thanks. |
I've been experimenting trying to break my large file into smaller and easier to handle files. I may be completely miss understanding part of the documentation where it says Headers can be a reference object.
But how come this doesn't validate in the 3.0.
The text was updated successfully, but these errors were encountered: