scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.43k stars 226 forks source link

Text overflow in Model description #204

Closed jagannathsrs closed 3 years ago

jagannathsrs commented 4 years ago

When a description for an API property is long, it overflows out of the div.

@IsNotEmpty()
  @ApiProperty({ example: integrations.MySQL, description: `Accepted values: ${integrationValues}`})
  @IsString()
  @IsEnum(integrations, {message: `Can be of type`+ integrationValues})
  dbType: integrations;

image

Fix:

Add the follwing in custom css:

.swagger-ui .renderedMarkdown p { word-break: break-all; }

scottie1984 commented 3 years ago

This issue is specific to swagger-ui (https://github.com/swagger-api/swagger-ui). Please raise them with swagger-ui directly.

This module is a wrapper for swagger-ui for express