jsonschema-generator icon indicating copy to clipboard operation
jsonschema-generator copied to clipboard

feature: add GSON module

Open torrespro opened this issue 1 year ago • 1 comments

Based on the conversation here (https://github.com/victools/jsonschema-generator/issues/218) and in our implementation in a internal project I added the Gson Module to the project just in case we want to have an initial support to maybe extend in the future. It's quite simple just 2 annotations for now, in our project actually the module it's just a class in our code not a full new dependency but maybe in some other context and if more functionality is added a module would make more sense.

torrespro avatar May 27 '24 19:05 torrespro

If this becomes officially supported, I'd love to contribute as well.

So far I stumbled upon another case which I fixed for myself: this doesn't cover @SerializedName annotation present on enums. We'd need Jackson's CustomEnumDefinitionProvider for gson as well.

matusfaro avatar Nov 05 '24 15:11 matusfaro