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

YAML tags #23

Open
krenyy opened this issue Sep 16, 2024 · 0 comments
Open

YAML tags #23

krenyy opened this issue Sep 16, 2024 · 0 comments
Assignees

Comments

@krenyy
Copy link

krenyy commented Sep 16, 2024

Hello!

I noticed, that when using this tool for YAML, tagged values are converted to null, which is something I would not expect.

> cat asdf.yml 
some: value
a: !tagged value

> yq asdf.yml
some: value
a: !tagged value

> qq asdf.yml 
{
  "a": null,
  "some": "value"
}

Not sure, what solution would be the best, but I think returning null is not intended.

Ways to address this:

  • return a JSON with keys tag and value.
  • just return the underlying type (in this case string)
  • add some kind of prefix -- QQ_YAML_TAGGED(<TAG>):<VALUE>
@JFryy JFryy self-assigned this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants