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

more string quoting#398

Open
thedavidmeister wants to merge 7 commits intodtolnay:masterfrom
thedavidmeister:2023-11-28-always-quote-strings
Open

more string quoting#398
thedavidmeister wants to merge 7 commits intodtolnay:masterfrom
thedavidmeister:2023-11-28-always-quote-strings

Conversation

@thedavidmeister
Copy link
Copy Markdown

@thedavidmeister thedavidmeister commented Nov 28, 2023

fixes #397 #319

@thedavidmeister thedavidmeister changed the title always quote strings more string quoting Nov 28, 2023
Comment thread src/de.rs
|| lower_scalar == "null"
|| lower_scalar == "nil"
|| lower_scalar == "~"
|| lower_scalar == "nan"
Copy link
Copy Markdown

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown

Choose a reason for hiding this comment

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

thanks

Comment thread tests/test_serde.rs
"NULL",
"nil",
"Nil",
"NIL",
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

Choose a reason for hiding this comment

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

thanks

@fzgregor
Copy link
Copy Markdown

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