Skip to content

JSON Schema Validation struggles with circular references #789

@philsturgeon

Description

@philsturgeon

I am building an AsyncAPI ruleset over here: apisyouwonthate/style-guide#4

The schema function should support Draft 4, 6 and 7, but when I run spectral lint -r asyncapi.yml examples/asyncapi.yml I get this error:

Encountered error when running rule 'asyncapi-schema' on node at path '$':
Error: id "http://json-schema.org/draft-07/schema" resolves to more than one schema

/Users/phil/src/style-guide/examples/asyncapi.yml
 1:1  warning  asyncapi-servers  Define at least one server.
 2:6  warning  info-contact      Info object should contain `contact` object.

I'm not sure what that means, but to be able to use the AsyncAPI v2.0.0 metaschema we need JSON Schema Draft 7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    t/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions