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
A
@Nullableannotation sets the propertyrequiredto false inSchemaCustomizerForNullableandDefaultOperationParameterNullableCustomizer.Introduce a new interface which consolidates this
@Nullabledetection and also support more annotations such as@NotNulland others (make dependencies optional though!)Do the same for
@Deprecated, seeDefaultOperationParameterDeprecatedCustomizerandSchemaCustomizerForDeprecatedFor "reference like types" such as
Optional, one could also consider this as if the type is annotated with@Nullable