I could be missing something, but when a component does not have a child, null is passed instead. This means that a component without child will fail the propType validation when Schema.node is used.
For reference, this is the schema that I use.
Test.propTypes = propTypeSchema({
type: 'object',
properties: {
children: {
type: Schema.node,
required: false,
},
route: {
type: 'object',
},
},
});
I could be missing something, but when a component does not have a child, null is passed instead. This means that a component without child will fail the propType validation when Schema.node is used.
For reference, this is the schema that I use.