Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Conversation

@thedavidmeister
Copy link

@thedavidmeister thedavidmeister commented Nov 28, 2023

fixes #397 #319

@thedavidmeister thedavidmeister changed the title always quote strings more string quoting Nov 28, 2023
|| lower_scalar == "null"
|| lower_scalar == "nil"
|| lower_scalar == "~"
|| lower_scalar == "nan"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if this would also cover the float or string issue: https://hitchdev.com/strictyaml/why/implicit-typing-removed/#string-or-float

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fzgregor tests added

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

"NULL",
"nil",
"Nil",
"NIL",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test string for float or string would be 2E234567

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fzgregor i added this

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@fzgregor
Copy link

fzgregor commented Mar 8, 2024

@thedavidmeister what's your thinking about this PR? Is it ready to be merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent Quoting Behavior in String Serialization

2 participants