Skip to content
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

Unable to validate JSON Schema - error: Invalid type: undefined (expected object) #137

Open
RubenHuybrighs opened this issue May 21, 2019 · 0 comments

Comments

@RubenHuybrighs
Copy link

I'm trying to write a function that validates if my response has the correct JSON Schema but I keep getting the same error message for whatever I try:
"error: Invalid type: undefined (expected object).
data path: .
schema path: /type.

I've explained my issue here, including the response and my function:
https://pastebin.com/VeZLGF2U

Please let me know if you need anymore details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant