json-kotlin-schema-codegen icon indicating copy to clipboard operation
json-kotlin-schema-codegen copied to clipboard

[0.81] Annotations config not being applied to generation of data classes

Open Tzrlk opened this issue 3 years ago • 3 comments

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.

Tzrlk avatar Sep 30 '22 22:09 Tzrlk

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?

pwall567 avatar Oct 09 '22 11:10 pwall567

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?

pwall567 avatar Oct 09 '22 13:10 pwall567

Well that's embarrassing. I'll double check things when I get home and update accordingly.

Tzrlk avatar Oct 14 '22 05:10 Tzrlk

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.

pwall567 avatar Jan 31 '23 11:01 pwall567

Oh, I completely forgot about this. Yes, it's all good.

Tzrlk avatar Jan 31 '23 23:01 Tzrlk