Skip to content

Validate with #/.. does't work when used with custom keywords #1001

Description

@ovx

What version of Ajv are you using? Does the issue happen if you use the latest version?

6.10

Ajv options object
JSON Schema
Sample data
Your code

https://runkit.com/embed/gfk2ixcd5gbp

Validation result, data AFTER validation, error messages

Error: no schema with key or ref "#/definitions/Data"

What results did you expect?

To find and validate the schema. It works without the custom keyword (just remove addKeyword and it works as expected).

Are you going to resolve the issue?

I have no clue why is this happening and how to fix it.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions