Hi,
I am trying to set a ‘type: [‘null’, ‘object’]’ for a schema item with the below code as an example:
schema={{
type: 'object',
properties: {
name: {
type: 'string',
description: 'Name example'
},
geometry: {
type: ['null', 'object'],
properties: {
shape: {
type: 'string'
description: 'Example geometry shape property'
},
etc........
}
}
}
}}
When I put this schema into my code it kills my app. Adding in type: 'object'
it works fine.
Is it allowed to have type: ['null', 'object']
as I have done in the geometry section above?