We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting the following error with 2.0.0-rc.28. This same schema loads into Swagger just fine.
t.required.indexOf is not a function Stack trace TypeError: t.required.indexOf is not a function at http://localhost/redoc.standalone.js:130:54204 at Array.map () at http://localhost/redoc.standalone.js:130:54018 at e.init (http://localhost/redoc.standalone.js:130:54727) at new e (http://localhost/redoc.standalone.js:130:51696) at new e (http://localhost/redoc.standalone.js:130:59448) at http://localhost/redoc.standalone.js:130:60804 at Array.map () at new e (http://localhost/redoc.standalone.js:130:60752) at new Gt (http://localhost/redoc.standalone.js:130:61517) ReDoc Version: 2.0.0-rc.28 Commit: 18dbd62
t.required.indexOf is not a function Stack trace TypeError: t.required.indexOf is not a function at http://localhost/redoc.standalone.js:130:54204 at Array.map () at http://localhost/redoc.standalone.js:130:54018 at e.init (http://localhost/redoc.standalone.js:130:54727) at new e (http://localhost/redoc.standalone.js:130:51696) at new e (http://localhost/redoc.standalone.js:130:59448) at http://localhost/redoc.standalone.js:130:60804 at Array.map () at new e (http://localhost/redoc.standalone.js:130:60752) at new Gt (http://localhost/redoc.standalone.js:130:61517)
ReDoc Version: 2.0.0-rc.28 Commit: 18dbd62
The text was updated successfully, but these errors were encountered:
required should be an array in Schema objects. You probably use required: true
required
required: true
See example here, boolean in parameters, array in the schema:
array
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#operation-object-example
Sorry, something went wrong.
Yes, this was the issue. I thought I had run it through the schema validator before posting this. Thanks.
No branches or pull requests
Getting the following error with 2.0.0-rc.28. This same schema loads into Swagger just fine.
The text was updated successfully, but these errors were encountered: