openapi-generator-for-spring icon indicating copy to clipboard operation
openapi-generator-for-spring copied to clipboard

Consolidate @Nullable/@Deprecated detection

Open neiser opened this issue 4 years ago • 0 comments

A @Nullable annotation sets the property required to false in SchemaCustomizerForNullable and DefaultOperationParameterNullableCustomizer.

Introduce a new interface which consolidates this @Nullable detection and also support more annotations such as @NotNull and others (make dependencies optional though!)

Do the same for @Deprecated, see DefaultOperationParameterDeprecatedCustomizer and SchemaCustomizerForDeprecated

For "reference like types" such as Optional, one could also consider this as if the type is annotated with @Nullable

neiser avatar Nov 30 '20 09:11 neiser