joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc
http://www.jsonschema2pojo.org
Apache License 2.0
6.24k stars 1.66k forks source link

Feature/added required nonnull check #1592

Open jiri-meluzin opened 8 months ago

jiri-meluzin commented 8 months ago

When a field in json schema is required and includeJsr303Annotations then compiler complains about missing checks of nullability of the fields.

I have introduced new config option includeRequireNonNullOnRequiredFields which added required checks so no nullability compiler warnings