singleton
singleton copied to clipboard
[BUG] [Java Service]Body parameter displays as "request body" on swagger ui.
Describe the bug commit: 5f9c93ce435a14118373688d45c3f27d5b2d3f7a Body parameter displays as "request body" in swagger ui. Effected APIs: V2: POST[/i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys] POST[/i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}] PUT[/i18n/api/v2/translation/products/{productName}/versions/{version}] V1: POST[/i18n/api/v1/translation/product/{productName}/component/{component}/key/{key}] POST[/i18n/api/v1/translation/product/{productName}/component/{component}/sources] PUT[/i18n/api/v1/translation/product/{productName}/version/{version}]
To Reproduce Steps to reproduce the behavior:
- Check the above APIs in swagger ui.
- See the content:
Expected behavior
Parameter name should be shown on swagger ui, it helps user understand what it is.
it is also reproducible in L10N Service APIs. POST [/i18n/l10n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys] POST [/i18n/l10n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys/{key}] POST [/i18n/l10n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}]
I have investigated the swagger3. It can't support change the request body name. we need to wait swagger3 upgrade to support change the request body name feature.