@@ -214,7 +214,7 @@ export const SchemaPropertiesComponent: React.FunctionComponent<Props> = ({
214214 Unique
215215 </ span >
216216 ) }
217- { element . schema . content . minItems && (
217+ { typeof element . schema . content . minItems === 'number' && (
218218 < span
219219 className = "bg-purple-dark font-bold no-underline text-white rounded lowercase ml-2"
220220 style = { { height : '20px' , fontSize : '11px' , padding : '3px' } }
@@ -223,7 +223,7 @@ export const SchemaPropertiesComponent: React.FunctionComponent<Props> = ({
223223 >= { element . schema . content . minItems } items
224224 </ span >
225225 ) }
226- { element . schema . content . maxItems && (
226+ { typeof element . schema . content . maxItems === 'number' && (
227227 < span
228228 className = "bg-purple-dark font-bold no-underline text-white rounded lowercase ml-2"
229229 style = { { height : '20px' , fontSize : '11px' , padding : '3px' } }
@@ -232,7 +232,7 @@ export const SchemaPropertiesComponent: React.FunctionComponent<Props> = ({
232232 <= { element . schema . content . maxItems } items
233233 </ span >
234234 ) }
235- { element . schema . content . minLength && (
235+ { typeof element . schema . content . minLength === 'number' && (
236236 < span
237237 className = "bg-purple-dark font-bold no-underline text-white rounded lowercase ml-2"
238238 style = { { height : '20px' , fontSize : '11px' , padding : '3px' } }
@@ -241,7 +241,7 @@ export const SchemaPropertiesComponent: React.FunctionComponent<Props> = ({
241241 length >= { element . schema . content . minLength }
242242 </ span >
243243 ) }
244- { element . schema . content . maxLength && (
244+ { typeof element . schema . content . maxLength === 'number' && (
245245 < span
246246 className = "bg-purple-dark font-bold no-underline text-white rounded lowercase ml-2"
247247 style = { { height : '20px' , fontSize : '11px' , padding : '3px' } }
@@ -250,7 +250,7 @@ export const SchemaPropertiesComponent: React.FunctionComponent<Props> = ({
250250 length <= { element . schema . content . maxLength }
251251 </ span >
252252 ) }
253- { element . schema . content . minimum && (
253+ { typeof element . schema . content . minimum === 'number' && (
254254 < span
255255 className = "bg-purple-dark font-bold no-underline text-white rounded lowercase ml-2"
256256 style = { { height : '20px' , fontSize : '11px' , padding : '3px' } }
@@ -259,7 +259,7 @@ export const SchemaPropertiesComponent: React.FunctionComponent<Props> = ({
259259 >= { element . schema . content . minimum }
260260 </ span >
261261 ) }
262- { element . schema . content . maximum && (
262+ { typeof element . schema . content . maximum === 'number' && (
263263 < span
264264 className = "bg-purple-dark font-bold no-underline text-white rounded lowercase ml-2"
265265 style = { { height : '20px' , fontSize : '11px' , padding : '3px' } }
0 commit comments