-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
schema is invalid: data/required should be array #1464
Labels
Comments
The usage context is not clear - there is no code sample - but the problem is required: true - it should be defined on the object level in the schema as the list of required properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting Error: schema is invalid: data/required should be array
at Ajv.validateSchema (/Users/rahulvageriya/.config/yarn/global/node_modules/ajv/lib/ajv.js:178:16)
When we used below JSON:
But it worked fine when we use type or example under schema tag like below 👍
in: path
required: true
description: The id of the pet to retrieve
schema :
type: string
example: "1234567890"
Is it possible to use this type and example Tag without schema.?
The text was updated successfully, but these errors were encountered: