Lost deprecated attribute after updating to 2.8.16 (original) (raw)
Describe the bug
- I just upgraded 2.8.14 -> 2.8.16
- 3 deprecated fields on my models no longer show up in the generated yaml.
- Here is one example, a simple String field that loses the deprcated attribute:
- ```
public record AdjustmentReportRow(
...
@java.lang.Deprecated @NotNull String productLengthName) {}
diff --git a/web/sdk/openapi.json b/web/sdk/openapi.json index 0a1a252003..2465478b97 100644 --- a/web/sdk/openapi.json +++ b/web/sdk/openapi.json @@ -193,7 +193,6 @@ "$ref": "#/components/schemas/ProductLink" }, "productLengthName": {
"deprecated": true, "type": "string" }, "tag": {
**To Reproduce**
Steps to reproduce the behavior:
* What version of spring-boot you are using? 3.5.12
* What modules and versions of springdoc-openapi are you using? 2.8.16, no modules that I know of, but I'm not sure what a module is in springdoc.
* What is the actual and the expected result using OpenAPI Description (yml or json)?
Actual:
"$ref": "#/components/schemas/ProductLink"
},
"productLengthName": {"deprecated": true, "type": "string" }, "tag": {
Expected: no changes:
"$ref": "#/components/schemas/ProductLink"
},
"productLengthName": {
"deprecated": true,
"type": "string"
},
"tag": {```
- Provide with a sample code (HelloController) or Test that reproduces the problem.
- Is there a template I can use to provide this?
Expected behavior
- A clear and concise description of what you expected to happen.
- No changes in behavior for a point version update in springdoc.
- What is the expected result using OpenAPI Description (yml or json)?
- No changes to the openapi description for a point version update.