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

Amending YAML parser to add support for tags #4934

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

greg-at-moderne
Copy link
Contributor

@greg-at-moderne greg-at-moderne commented Jan 22, 2025

What's changed?

Adding support for tags in YAML, e.g.

AttributeDefinitions: !Dynamo Title

!Dynamo is a tag here.

What's your motivation?

Observed in real-life YAMLs that they sometimes use tags.
Currently they have been accidentally supported in some cases. E.g. for scalars we used to consider !Dynamo Title to be the value.

Anything in particular you'd like reviewers to focus on?

The LST model for YAML has been amended to include two new fields called tag in Scalar and Sequence. Which is not fully backward compatible. E.g. if someone has a recipe which does new Yaml.Scalar(...), the code will no longer compile for 1 extra argument missing.
Not sure how do we provide coverage for these scenarios.

@greg-at-moderne greg-at-moderne added bug Something isn't working parser-yaml labels Jan 22, 2025
@greg-at-moderne greg-at-moderne self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser-yaml
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant