|
Hi there! Does Configurate support any form of comment preservation? i.e., when any changes are written to a file, the comments in the file are preserved in the same location? Hope I didn't ask a question that was already answered here, I tried searching but nothing came up. |
Answered by
zml2008
May 9, 2022
Replies: 1 comment 1 reply
|
Yes -- the HOCON and XML formats currently roundtrip comments fairly reliably, and there is work in progress to support the same for the YAML loader in #175. These loaders will all give you When working with the object mapper, the |
1 reply
Answer selected by
lokka30
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes -- the HOCON and XML formats currently roundtrip comments fairly reliably, and there is work in progress to support the same for the YAML loader in #175. These loaders will all give you
CommentedConfigurationNodes which provide comment information for tinkering with.When working with the object mapper, the
@Commentannotation will allow you to provide initial comments for mapped fields.