[0.81] Annotations config not being applied to generation of data classes
When I have the following annotation config:
"annotations": {
"classes": {
"kotlinx.serialization.Serializable": null,
"javax.annotation.Generated": "\"{{&generator}}\", date=\"{{&dateTime}}\""
}
},
the generated classes don't have any annotations applied to them.
Note: I haven't tested this with non-data classes, nor fields.
As with your other issue, I'm very sorry about the delay in responding. But in this case, I'm struggling to see what the problem is. Configuration like you have there works OK in most tests – can you give more information on the circumstances? The schema and the generated output?
I've just noticed – your issue report specifically mentions version 0.81. Annotations were added in version 0.82. Are you using the correct version?
Well that's embarrassing. I'll double check things when I get home and update accordingly.
I'm closing this issue as resolved. If you think there are still outstanding questions, feel free to reopen it or create a new issue.
Oh, I completely forgot about this. Yes, it's all good.