-
Notifications
You must be signed in to change notification settings - Fork 94
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
Warning and missing response description when generating specs for file upload #1418
Comments
It's already fixed. Just use latest version of micronaut-openapi. Latest version generate this: openapi: 3.0.1
paths:
/api:
post:
summary: Upload a file
operationId: UploadFile
requestBody:
description: File request
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
encoding:
file:
contentType: application/octet-stream
responses:
"204":
description: OK |
I'm sorry, but I've just upgraded the sample project to version 6.5.1 and still seeing the same behaviour. Am I doing something wrong? |
try to replace this: compileOnly platform("io.micronaut.openapi:micronaut-openapi-bom:6.5.1")
compileOnly("io.micronaut.openapi:micronaut-openapi")
compileOnly("io.micronaut.openapi:micronaut-openapi-annotations") to this: compileOnly("io.micronaut.openapi:micronaut-openapi:6.5.1!!") |
Hm... looks like a bug with groovy only... Ok, I'll check it tomorrow |
I fixed it, but for you know: this is bug with jackson with groovy. With kotlin and java all wors fine |
Expected Behavior
Response description should be present without warnings.
Actual Behaviour
Given a controller method such as:
A warning is shown when generating the OpenAPI specs:
Although the generated specs seem to look okay, the desired description for the response is missing (might be related to the warning?):
Steps To Reproduce
./gradlew compileGroovy
Environment Information
Example Application
https://github.com/tcrespog/mn-openapi-content
Version
4.2.3
The text was updated successfully, but these errors were encountered: