Commit 2318e99
committed
fix: always set str tag on string scalars
When yaml.v3 parses yaml, string scalars are tagged "!!str". It is
possible that we could parse a values file which sets the version to
eg 1.23 (a float), so that when we later update the value to "v2.4"
it can't be serialized. To protect against this, set the tag whenever
we create or update scalars that are explicitly intended to be strings.1 parent acf1ee0 commit 2318e99
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| 630 | + | |
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
| |||
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
| 644 | + | |
643 | 645 | | |
644 | 646 | | |
645 | 647 | | |
646 | 648 | | |
| 649 | + | |
647 | 650 | | |
648 | 651 | | |
649 | 652 | | |
| |||
652 | 655 | | |
653 | 656 | | |
654 | 657 | | |
| 658 | + | |
655 | 659 | | |
656 | 660 | | |
657 | 661 | | |
| |||
0 commit comments