`@SerialComment` annotation
See original GitHub issueWhat is your use-case and why do you need this feature?
@SerialComment
annotation will be useful for automatically generated configuration files. Some serialization libraries already implemented that feature including:
And it’s possible to add comment support in other libraries like:
The problem is that they are using/will use different @Comment
annotations
Describe the solution you’d like
- Add
@SerialComment
annotation SerialDescriptor.getElementComment(index: Int): String
function to get property commentSerialFormat.supportsComments
property to check ifSerialFormat
supports comment serialization (false
by default)
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Annotations - serializer Documentation (master)
This annotation can be defined on a property or a class to indicate that the property or class should not be serialized/unserialized.
Read more >Control liquibase migration scripts on different environments.
`id` SERIAL COMMENT 'Auto-generated monotonically increasing id of the table.', ... import org.springframework.context.annotation.Bean;
Read more >Guide to the @Serial Annotation in Java 14 | Baeldung
Learn how to apply the @Serial annotation in Java 14 to assist with compile-time checks on serializable properties of a class.
Read more >cham_avr_user_manual_v1-890.pdf - Mouser Electronics
Figure 1.1 shows an image of the Chameleon AVR 8-bit annotated. ... of the programs that use serial comment out the include file...
Read more >Reading, Society and Politics in Early Modern England
... voices of the era, the comment serial. Comment serials – regular printed ... it explores the habits of compilation and annotation that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i wonder, though, if it is possible to do make this happen without a dedicated annotation. does the compiler plugin support comments? could it just take the native Kotlin comment from the property?
@slava110, I guess you can already achieve the goal as follows