chakram icon indicating copy to clipboard operation
chakram copied to clipboard

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

Open RubenHuybrighs opened this issue 5 years ago • 0 comments

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.

RubenHuybrighs avatar May 21 '19 16:05 RubenHuybrighs