question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

oas3-valid-(content-)schema-example: can't handle circular references

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
philsturgeoncommented, Mar 23, 2021

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.

1reaction
m-mohrcommented, Jul 15, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found