oas3-valid-(content-)schema-example: can't handle circular references
See original GitHub issueDescribe the bug
It seems that in some cases the rules oas3-valid-schema-example and oas3-valid-content-schema-example fail although the examples and JSON paths are valid (afaik).
I get in the command line:
2040:25 error oas3-valid-content-schema-example can't resolve reference #/components/schemas/process_json_schema from id #
4745:15 error oas3-valid-content-schema-example can't resolve reference #/components/schemas/process_arguments from id #
4745:15 error oas3-valid-schema-example can't resolve reference #/components/schemas/process_arguments from id #
5016:29 error oas3-valid-content-schema-example can't resolve reference #/components/schemas/process_arguments from id #
To Reproduce
OpenAPI document: https://raw.githubusercontent.com/Open-EO/openeo-api/spectral/openapi.yaml
.spectral.yml
extends: "spectral:oas"
Run: spectral lint openapi.yaml
Expected behavior
No warnings/errors
Environment (remove any that are not applicable):
- Library version: 5.0.0 and develop branch
- OS: Windows 10
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Remove or allow a circular reference - Microsoft Support
If you can't find the error, click the Formulas tab, click the arrow next to Error Checking, point to Circular References, and then...
Read more >python - Pickle/dill cannot handle circular references if __hash ...
As I understand the problem, pickle attempts to deserialize B.links before it deserializes A . The set instance used in B attempts to...
Read more >Circular reference in Excel: how to find, enable, use, or remove
This is how you deal with Excel circular references. Hopefully, this short tutorial has shed some light on this "blind spot", and now...
Read more >code quality - What's wrong with circular references?
Circular assembly references prevent static linking, because B depends on A but A cannot be assembled until B is complete.
Read more >Understanding and solving circular references - Qlik | Help
When Qlik Sense finds circular data structures while executing the load script, a warning dialog will be shown and one or more tables...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey! The team has been rammed with Elements, Collaborative “Web Projects”, and Workspace Groups for the last few months but we’re about to rapid fire release a bunch of that stuff and get back to meaningful improvements to Spectral.
Spectral v6 will need a certain amount of refactoring for OpenAPI v3.1 (#1302) and loads of other improvements will be happening, so yeah it’s coming! Again, https://github.com/stoplightio/spectral/issues/1054 is the issue to watch so subscribe to that for updates.
Totally understood. I had a PR up (#915), but didn’t had enough knowledge to fix it properly, could just “ignore” it, it’s just too deep in the code and - as it seems - needs a new parser. So I’m happy to hear that this might be solved in 6.0 and I’m also happy to test or so.