Closed martinfkaeser closed 1 year ago
There is the potential workaround to programmatically modify schema descriptions and create schema aliases: https://github.com/springdoc/springdoc-openapi/issues/685
I tried this out in https://github.com/eclipse-tractusx/bpdm/pull/405
But we decided not to go with it because it has still too many downsides:
There are two known issues with the OpenAPI/SpringDoc descriptions:
Generic classes can't get specific schema descriptions depending on the type parameter via SpringDoc annotations. Example:
TypeKeyNameVerboseDto<CountryCode>
The spec only shows the generic description that is annoted onTypeKeyNameVerboseDto
, although a specific schemaTypeKeyNameVerboseDtoCountryCode
is generated.There is an OpenAPI limitations not allowing to specify a field description for singular objects of complex type (contrary to collection objects of complex type and objects of primitive type), see https://github.com/springdoc/springdoc-openapi/issues/1178 . There is only schema description of the referred type. Example:
legalAddress
inLegalEntityPartnerCreateRequest
etc.