Skip to content

Problem with $ref to validate array property #63

Closed
@apsoto

Description

Hey There,

New to JSON-Schema, so totally expect it to be something I'm doing wrong, but if anyone can look at this Gist and explain what about the $ref I'm doing wrong? I've got some more complex data and I'm trying to re-use schemas. I've distilled it down to a simple test case and I can't tell if it's incorrect syntax on my end, or it's the validator.

Given this gist, I expect the sample data to report validation errors.

It works as expected if I take the schema ref and embed it directly, but when I use $ref, no errors?

Any ideas?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions