-
Notifications
You must be signed in to change notification settings - Fork 112
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
Parameter examples generate incorrect OpenAPI schema #112
Comments
They are both correct according to the spec. If there is something else I'm missing, let me know. |
Sorry for not including this info from the beginning. {
"openapi": "3.0.0",
"info": {
"title": "okapi_examples",
"version": "0.1.0"
},
"paths": {
"/example": {
"get": {
"operationId": "get_param",
"parameters": [
{
"name": "param",
"in": "query",
"required": true,
"schema": {
"examples": [
10
],
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": ""
}
}
}
}
},
"components": {}
} The problem here is that using
|
Returns a spec containing
instead of
Using rocket-okapi 0.8.0-rc.2
The text was updated successfully, but these errors were encountered: