Skip to content

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

Description

@RubenHuybrighs

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions