FasterXML / FasterXML/jackson-dataformats-text

Yaml keys starting with number are being double quoted when mapper.writeValue()

オープン
#447 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
yaml
主要言語
Java
スター
455
フォーク
164
平均マージ
6日 10時間
マージ済み PR(30日)
2

説明

I am writing a YAML file with mapper.writeValue() but the keys that start with a number are being double quoted even if the original key doesn't have the quotes.
I understand that the double quotes are being added because mapper want to avoid YAML to consider a String as a number, but it would be better for me to avoid the quotes.
I've tried with enable(YAMLGenerator.Feature.MINIMIZE_QUOTES)) but not helping with this issue.

Example:
//original key -> after writeValue()
6712dd2a-2695-49cb-89a8-9b5592951522: -> "6712dd2a-2695-49cb-89a8-9b5592951522":

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。