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

Only allow AliasNode as a structural reference #1026

Open
ssalbdivad opened this issue Jun 24, 2024 · 0 comments
Open

Only allow AliasNode as a structural reference #1026

ssalbdivad opened this issue Jun 24, 2024 · 0 comments

Comments

@ssalbdivad
Copy link
Member

Currently, the rules about where aliases (for cyclic types) can occur are not strict enough, leading to confusing structures where you don't know when you're going to get an alias or a resolved node.

Now that the ID is calculated before the node itself is created, this could be used to ensure we can resolve to that reference ahead of time and only in structural positions, i.e. on a Sequence/Required/Optional/Index node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant