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

Support complex anchors in yaml #178

Closed
ChaserVasya opened this issue Dec 9, 2023 · 2 comments
Closed

Support complex anchors in yaml #178

ChaserVasya opened this issue Dec 9, 2023 · 2 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@ChaserVasya
Copy link

ChaserVasya commented Dec 9, 2023

_templateEnum: &templateEnum
        enumVal1: ''
        enumVal2: ''
        
....
templateUsage(context=...,param=...):
    <<: *templateEnum
    enumVal2: 'some text'

error:
type 'ObjectNode' is not a subtype of type 'StringTextNode' in type cast

@ChaserVasya ChaserVasya added the bug Something isn't working label Dec 9, 2023
@ChaserVasya ChaserVasya changed the title Support aliases and anchors Support complex anchors in yaml Dec 9, 2023
@Tienisto Tienisto added enhancement New feature or request and removed bug Something isn't working labels Jan 19, 2024
@Tienisto
Copy link
Member

The merge operator is currently not supported by the yaml: (see: dart-lang/yaml#121).

@Tienisto
Copy link
Member

I tried out different anchors and they seem to work out of the box. I guess if the Dart team add support for the merge operator, it should also work when using slang. There is nothing we can do now (except implementing a custom yaml parser which exceeds the scope of this package).

@Tienisto Tienisto closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2024
@Tienisto Tienisto added the wontfix This will not be worked on label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants