Enable YAML merge keys in yamlPlaceholderResolver#31303
Enable YAML merge keys in yamlPlaceholderResolver#31303freben merged 8 commits intobackstage:masterfrom
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
|
Thanks for the contribution! |
Signed-off-by: Dharmik <dharmik.gangani17@gmail.com>
Signed-off-by: Dharmik <dharmik.gangani17@gmail.com>
42677dd to
abba9db
Compare
freben
left a comment
There was a problem hiding this comment.
Hi! See the build output. You'll want to add a changeset, and add a DCO signature to every commit.
Signed-off-by: Dharmik <dharmik.gangani17@gmail.com>
Signed-off-by: Dharmik <dharmik.gangani17@gmail.com>
|
The current implementation is not using the configurable approach, but has it hard-coded to true. To have backwards compatibility, I think we need to set it configurable and |
freben
left a comment
There was a problem hiding this comment.
Did you intentionally only add this in the placeholder resolver, and not in the actual main entity reader/parser?
Yes, merge key support is intentional in the resolver for now ,but I’d like to make it configurable so it’s not always forced on everyone. |
Signed-off-by: Dharmik <dharmik.gangani17@gmail.com>
7c87c55 to
b413782
Compare
|
Seems that the build isn't passing - API reports need to be updated. |
Signed-off-by: Dharmik <dharmik.gangani17@gmail.com>
Signed-off-by: Dharmik <dharmik.gangani17@gmail.com>
|
Thank you for contributing to Backstage! The changes in this pull request will be part of the |
Hey, I just made a Pull Request!
This PR updates the
yamlPlaceholderResolverinPlaceholderProcessor.tsto support YAML merge keys (<<) and anchors by enabling the{ merge: true }option inyaml.parseAllDocuments.Issue: #31063
💡 Suggestion
I’d like to make the YAML merge support configurable rather than always enabled.
By default, it stays
truefor backward compatibility, but users can choose to disable it if their use case requires stricter parsing.Proposed approach:
✔️ Checklist
Signed-off-byline in the message. (more info)