-
-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Labels
Description
Spring automatically generates schema definitions with generic types (see the example for details).
This causes the typescript interfaces to contain underscores in place of "«" symbols when such a schema is used.
Current result:
Page_TemplateResponseDto_
Expected result:
PageTemplateResponseDto
OA version - 2.0
Example schema:
{
"Page«TemplateResponseDto»":{
"type":"object",
"properties":{
"content":{
"type":"array",
"items":{
"$ref":"#/definitions/TemplateResponseDto"
}
},
"empty":{
"type":"boolean"
},
"first":{
"type":"boolean"
},
"last":{
"type":"boolean"
},
"number":{
"type":"integer",
"format":"int32"
},
"numberOfElements":{
"type":"integer",
"format":"int32"
},
"pageable":{
"$ref":"#/definitions/Pageable"
},
"size":{
"type":"integer",
"format":"int32"
},
"sort":{
"$ref":"#/definitions/Sort"
},
"totalElements":{
"type":"integer",
"format":"int64"
},
"totalPages":{
"type":"integer",
"format":"int32"
}
},
"title":"Page«TemplateResponseDto»"
}
}