Skip to content

Comment Preservation #280

Answered by zml2008
lokka30 asked this question in Support
May 9, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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 @Comment annotation will allow you to provide initial comments for mapped fields.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lokka30
Comment options

Answer selected by lokka30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants