-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spectral doesn't work with a schema containing the $ref
field
#2093
Comments
I'd say this is works as expected. As things stand We don't support $ref anywhere in the ruleset. |
@P0lip thanks for the comment. that makes sense. but wouldn't it be better to have some kind of log saying we don't support |
I dont think this is only an issue with
The custom function test context is only printing the input it receives (for now). But when I run Swagger PetStore OAS 3 Spec against this rule, it does not print any $ref nodes! NOTE: I added a extra sibling next to a jsonpath.com with the same JSON Path gives me all the ref nodes properly from the same OAS spec.
Spectrals own source code at Spectral Ruleset Github has the below code which uses the same piece of JSON path.
When I execute spectral by extending
Why is Thanks and regards, SG |
Describe the bug
Spectral doesn't provide any output if the schema contains a
$ref
field anywhere. It works fine if I don't have any$ref
fields in my schema.To Reproduce
run the following code in a node app. or use cli. I have tested it in both ways and the results are the same.
Expected output
Actual output
Environment:
The text was updated successfully, but these errors were encountered: