Skip to content

Controller method parameters serialized as - null #1237

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

Closed
yuri1969 opened this issue Oct 5, 2023 · 0 comments · Fixed by #1238
Closed

Controller method parameters serialized as - null #1237

yuri1969 opened this issue Oct 5, 2023 · 0 comments · Fixed by #1238

Comments

@yuri1969
Copy link

yuri1969 commented Oct 5, 2023

Expected Behavior

Controller method parameter produce a valid OpenAPI YAML parameter definition. Passing tests within tests.patch.txt.

Actual Behaviour

Various controller method parameters (see tests included within tests.patch.txt) produce invalid OpenAPI YAML parameter definitions.

Such null parameters cause various issues, like breaking Swagger UI.

The produced YAML section:

parameters:
- null

Steps To Reproduce

  1. Define a controller featuring a @Parameter as @Part CompletedFileUpload
  2. Generate the OpenAPI specification
  3. Verify content of the parameters subsection

Environment Information

  • GNU/Linux
  • Temurin 17

Example Application

No response

Version

4.1.6

altro3 added a commit to altro3/micronaut-openapi that referenced this issue Oct 6, 2023
altro3 added a commit to altro3/micronaut-openapi that referenced this issue Oct 12, 2023
altro3 added a commit to altro3/micronaut-openapi that referenced this issue Oct 12, 2023
graemerocher pushed a commit that referenced this issue Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant