Unable to validate JSON Schema - error: Invalid type: undefined (expected object)
RubenHuybrighs opened this issue · 0 comments
RubenHuybrighs commented
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.