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.
I am building an AsyncAPI ruleset over here: apisyouwonthate/style-guide#4
The
schemafunction should support Draft 4, 6 and 7, but when I runspectral lint -r asyncapi.yml examples/asyncapi.ymlI get this error: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.