- Issue created by @Liam Morland
Imagine a property like this:
my_property: type: ['string', 'null'] enum: - 'one' - 'two' - 'three' - null
This will lead to an error like the following:
TypeError: SchemaForms\Drupal\FormGeneratorDrupal::SchemaForms\Drupal{closure}(): Argument #2 ($opt) must be of type string, null given in SchemaForms\Drupal\FormGeneratorDrupal->SchemaForms\Drupal{closure}() (line 497 of /var/www/html/vendor/e0ipso/schema-forms/src/Drupal/FormGeneratorDrupal.php).
This may only be fixable in schema-forms-php
. I have reported it there:
https://github.com/e0ipso/schema-forms-php/issues/40
Support nullable enum props.
Figure out how to do it. Implement.
Additional UI for null values.
None.
None.
Active
1.0
Code