openapi-generator-for-spring
openapi-generator-for-spring copied to clipboard
Consolidate @Nullable/@Deprecated detection
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