We are getting "stringstri" instead of "string" type in OpenAPI preview in Swagger UI.
Issue:
- when
minLengthis 7 - we get "strings" in preview - when
minLengthis 8 - we get "stringst" in preview - when
minLengthis 9 - we get "stringstr" in preview
Similary it continues.
Expected - only "string".
Sample schema to reproduce the issue:
components:
schemas:
Manufacturer:
required:
- name
properties:
name:
type: string
minLength: 10
maxLength: 2048
Swagger UI displays the following example for this schema:
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Widget Adapter",
"releaseDate": "2021-05-17T06:52:27.542Z",
"manufacturer": {
"name": "stringstri",
"homePage": "string",
"phone": "string"
}
}