Skip to content
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

Clarify processing rules restrictions related to infinite recursion from reference cycles #8

Open
DavidBiesack opened this issue Oct 27, 2022 · 0 comments
Labels
jri Related to the JRI (JSON Referencing and Identification) proposal

Comments

@DavidBiesack
Copy link

The proposal in the handrews:jri PR contains:

## Guarding Against Infinite Recursion {#infinite}

An implementation MUST guard against infinite reference loops.

Processing rules for context specifications MAY make it safe to have cyclic references by creating conditions under which a reference will or will not be followed.

It seems problematic that and implementation MUST guard agains infinite reference loops (cycles),
but processing rules do not also have MUST make it safe. I think this needs more consideration.

If left as is, I suppose a rule could leave it unsafe (i.e. always follow references) and fall back on the implementation to guard against infinite recursion. If that is the intent, perhaps state that more explicitly.

@handrews handrews added the jri Related to the JRI (JSON Referencing and Identification) proposal label Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jri Related to the JRI (JSON Referencing and Identification) proposal
Projects
None yet
Development

No branches or pull requests

2 participants