We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
When ModelResolver.enumAsRef = true (like described here), the resulting openapi contains invalid reference on actuator using enum parameter.
The spring boot loggers actuator endpoint write / post operation, for example, is in that case.
Here a sample of the resulting openapi :
{ "paths": { "/actuator/loggers/{name}": { "post": { "tags": [ "Actuator" ], "summary": "Actuator web endpoint 'loggers-name'", "operationId": "configureLogLevel", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LogLevel" } } } }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" } } } } } }
The issue is that LogLevel doesn’t exist in /components/schemas and so the resulting openapi is invalid.
LogLevel
/components/schemas
The text was updated successfully, but these errors were encountered:
ModelResolver.enumAsRef = true result in invalid openapi with actuato…
c07093c
…r using enum param #2905
Great ! Thx @bnasslahsen !
Sorry, something went wrong.
No branches or pull requests
When ModelResolver.enumAsRef = true (like described here), the resulting openapi contains invalid reference on actuator using enum parameter.
The spring boot loggers actuator endpoint write / post operation, for example, is in that case.
Here a sample of the resulting openapi :
The issue is that
LogLevel
doesn’t exist in/components/schemas
and so the resulting openapi is invalid.The text was updated successfully, but these errors were encountered: