mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Small bug in open api spec v2 with composition
This commit is contained in:
parent
4cb15b2325
commit
64a3dc2d7d
@ -52,7 +52,7 @@ export function getModelComposition(openApi: OpenApi, definition: OpenApiSchema,
|
||||
properties.push(...modelProperties);
|
||||
}
|
||||
|
||||
if (properties) {
|
||||
if (properties.length) {
|
||||
composition.properties.push({
|
||||
name: 'properties',
|
||||
export: 'interface',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user