You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the ConditionalHandler fails to validate nested objects - if there are no default values inside of the nested object. Thus some else will never be applied, as the if is never evaluated.
Expected Behavior
Not checking for existance of object - and also evaluating it for other types than for object.
Steps to Reproduce
e.g. in this schema the if/then/else is not evaluated without the default for the boolean, the default creates the parent object in the store values and only than it works as expected:
constschema={type: 'object',properties: {file: {type: 'string',widget: 'FileUpload',},name: {type: 'object',properties: {value: {type: 'string',title: 'Name',view: {sizeMd: 10,},},custom: {type: 'boolean',default: false,// if this `default` does not exist, the `else` will not be applied},},allOf: [{if: {properties: {custom: {const: true,},},},then: {properties: {value: {},},},else: {properties: {value: {widget: 'Select',enum: ['steel','metal','earth'],},},},},],},},}
For non object this is valid, but not evaluated at all currently:
Current Behavior
Currently the
ConditionalHandler
fails to validate nested objects - if there are nodefault
values inside of the nested object. Thus someelse
will never be applied, as theif
is never evaluated.Expected Behavior
Not checking for existance of
object
- and also evaluating it for other types than forobject
.Steps to Reproduce
e.g. in this schema the
if/then/else
is not evaluated without thedefault
for theboolean
, thedefault
creates the parentobject
in the store values and only than it works as expected:For non
object
this is valid, but not evaluated at all currently:Your Environment
The text was updated successfully, but these errors were encountered: