Skip to content

Commit 64a3dc2

Browse files
author
Ferdi Koomen
committed
- Small bug in open api spec v2 with composition
1 parent 4cb15b2 commit 64a3dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openApi/v2/parser/getModelComposition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function getModelComposition(openApi: OpenApi, definition: OpenApiSchema,
5252
properties.push(...modelProperties);
5353
}
5454

55-
if (properties) {
55+
if (properties.length) {
5656
composition.properties.push({
5757
name: 'properties',
5858
export: 'interface',

0 commit comments

Comments
 (0)