Open feuerwagen opened 5 months ago
When using this library with the Drupal sdc_display module, it chokes on YAML structures like:
props: type: object properties: {}
where it's not able to recognise the value of properties as valid. This is for two reasons:
properties
(bool) $data->properties
JsonFormValidator
See issue for Single Directory Components: Display.
Constraint::CHECK_MODE_TYPE_CAST
FormGeneratorDrupal
I'm well aware that this might not be the correct solution and might have implications I can't see right now. Please advise.
When using this library with the Drupal sdc_display module, it chokes on YAML structures like:
where it's not able to recognise the value of
properties
as valid. This is for two reasons:(bool) $data->properties
is false (seeJsonFormValidator
, line 27)Steps to reproduce
See issue for Single Directory Components: Display.
Package Versions
Proposed resolution
Constraint::CHECK_MODE_TYPE_CAST
inFormGeneratorDrupal
, line 52.(bool) $data->properties
fromJsonFormValidator
, line 27.I'm well aware that this might not be the correct solution and might have implications I can't see right now. Please advise.