kevin3
1 day agoNew Member
Java Deprecated annotation issue
Mattias-Sehlstedt has helpfully created a PR that fixes my issue: https://github.com/swagger-api/swagger-core/pull/5099. This issue is causing a significant issues in my development work. Are these forums the correct place to attempt to bring visibility to this issue? I very much do not want the work in that PR to go to waste, and I would like to get the issue fixed.
What happens is that when I annotate a field in one class with @Deprecated, then every other field with the same name also becomes deprecated, and my openapi spec is not correct. For example I just needed to deprecate a `name` field, and now every single `name` field is marked deprecated:
@@ -19023,6 +19038,7 @@
"type": "string"
},
"name": {
+ "deprecated": true,
"type": "string"
},
"rate": {
@@ -22081,6 +22097,7 @@
"type": "string"
},
"name": {
+ "deprecated": true,
"type": "string"
}
},
@@ -23678,6 +23695,7 @@
"type": "string"
},
"name": {
+ "deprecated": true,
"type": "string"
},