You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like springdoc versions after 2.7.0 no longer render specification extensions.
Previous versions included values from Extension and ExtensionProperty annotations in the generated OpenAPI contract. They seem to be simply ignored in 2.8.x versions.
The extension mechanism is still part of Spec 3.1.1
To Reproduce
Given the following declaration:
@OpenAPIDefinition(info = @Info(title = "My API", extensions = @Extension(name = "logo", properties = {
@ExtensionProperty(name = "url", value = "https://www.example.com/logo.png"),
@ExtensionProperty(name = "altText", value = "Logo Altext")})))
Version 2.7.0 produced the following JSON definition:
I'm working with springdoc-openapi-starter-webmvc-ui.
Working example reproduced with Spring Boot 3.4.1 and SpringDoc 2.7.0.
Bug can be reproduced with latest versions Spring Boot 3.4.5 and SpringDoc 2.8.8.
Describe the bug
It looks like springdoc versions after 2.7.0 no longer render specification extensions.
Previous versions included values from Extension and ExtensionProperty annotations in the generated OpenAPI contract. They seem to be simply ignored in 2.8.x versions.
The extension mechanism is still part of Spec 3.1.1
To Reproduce
Given the following declaration:
Version 2.7.0 produced the following JSON definition:
2.8.x versions omit the x-logo property.
I'm working with springdoc-openapi-starter-webmvc-ui.
Working example reproduced with Spring Boot 3.4.1 and SpringDoc 2.7.0.
Bug can be reproduced with latest versions Spring Boot 3.4.5 and SpringDoc 2.8.8.
Expected behavior
Extension values should be rendered as in 2.7.0.
Additional context
The spec extensions in question are used for the Redoc schema viewer
https://redocly.com/docs-legacy/api-reference-docs/spec-extensions
The text was updated successfully, but these errors were encountered: