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
Payload json body is wrong example for array #494
Comments
@ntloi95 could you please share your schema and a screenshot of how this is rendered by ReDoc |
Thanks, could you also share the corresponding definition spec/schema ? |
So sorry, I click to close button because of mistake.
|
Wrong on payload is showing userResponse
|
I tried your spec and I can't reproduce your issue locally. For me it shows correct example: Could you share a full simplified schema on which this issue can be reproduced? You can upload it somewhere (e.g. gist) and put link to it into demo: http://rebilly.github.io/ReDoc/ And then share the demo-link here. Thanks! |
Hi, https://raw.githubusercontent.com/ntloi95/hack/master/redoc-v6.json |
You have an issue in your spec: "requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"integrations": {
"description": "Integrations",
"enum": [ // <---- HERE
"jawbone",
"underarmour",
"healthkit",
"googlefit"
],
"in": "body",
"items": {
"$ref": "#/components/schemas/integration"
},
"name": "integrations",
"type": "array"
}
},
"type": "object"
}
}
},
"required": true Enum on this level according to the spec means that value of this field ( ReDoc is rendering your spec correctly |
Remove "enum" is ok. ReDoc render correctly. |
In request body schemas, I have an array of string field.
But in payload, it's show only a string.
The text was updated successfully, but these errors were encountered: