Skip to content

Commit 887e2a3

Browse files
Fix lint
1 parent 1bfa11b commit 887e2a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/blueprint.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ const createProperty = (
11221122
return { ...baseProperty, format: 'string', jsonType: 'string' }
11231123
case 'boolean':
11241124
return { ...baseProperty, format: 'boolean', jsonType: 'boolean' }
1125-
case 'array':
1125+
case 'array': {
11261126
const baseListProperty: ListProperty = {
11271127
...baseProperty,
11281128
format: 'list',
@@ -1149,7 +1149,7 @@ const createProperty = (
11491149
]),
11501150
description: schema.description ?? '',
11511151
})),
1152-
...(prop.items.discriminator?.propertyName && {
1152+
...(prop.items.discriminator?.propertyName != null && {
11531153
discriminator: prop.items.discriminator.propertyName,
11541154
}),
11551155
}
@@ -1171,6 +1171,7 @@ const createProperty = (
11711171
itemEnumValues: itemProperty.values,
11721172
}),
11731173
}
1174+
}
11741175

11751176
case 'object':
11761177
if (prop.properties !== undefined) {

0 commit comments

Comments
 (0)