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

Support all utility OpenApi annotations on fields #217

Open
dzikoysk opened this issue Apr 27, 2024 · 0 comments
Open

Support all utility OpenApi annotations on fields #217

dzikoysk opened this issue Apr 27, 2024 · 0 comments
Labels
feedback wanted We need some extra feedback scope: compile-time

Comments

@dzikoysk
Copy link
Member

Context

Most of the property attributes work fine and make sense on fields, but don't currently support being put there. This fixes that limitation, which is useful when using @OpenApiByFields. (My immediate use case is OpenApiDescription, but the others seemed useful too.)

~ Reported by @maths22 in #216


Feedback wanted

I personally feel like most of the use cases should be absolutely fine with our current approach, but I'm open for feedback from other users that for some reason are forced to use fields.

As a straightforward solution, it is possible to cover this with @CustomAnnotation, but if we'll notice it is a frequent issue, I think we could support it in the core library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback wanted We need some extra feedback scope: compile-time
Projects
None yet
Development

No branches or pull requests

1 participant