Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate @Nullable/@Deprecated detection #3

Open
neiser opened this issue Nov 30, 2020 · 0 comments
Open

Consolidate @Nullable/@Deprecated detection #3

neiser opened this issue Nov 30, 2020 · 0 comments

Comments

@neiser
Copy link
Collaborator

neiser commented Nov 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant