-
Notifications
You must be signed in to change notification settings - Fork 273
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
Anchor on property which uses alias fails validation #273
Comments
From what I remember the way the merge key works in the code is it basically replaces
becomes
and then
should become
but my guess is somewhere along the lines something is going wrong but then again anchors are the piece of the spec I understand the least |
Yep, and that's what it does become when parsed. It's just an issue with the schema validation, from what I can tell. |
I think I've finally figured out what the issue is here. I think only the first merge key is being transformed and not the second one so the representation to the parser is:
leading to the issue |
Anything I can do to help? My yamls are all red :( |
I haven't been able to look into it but my hunch is that the first merge key is being properly expanded but the second one isn't, leading to the error. The code that does that is here: https://github.com/redhat-developer/yaml-language-server/blob/master/src/languageservice/parser/jsonParser07.ts#L951 if you want to poke around |
Schema:
Document:
Looks like it's incorrectly adding a layer of nesting or something?
The text was updated successfully, but these errors were encountered: