File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments