foundry-vtt-types icon indicating copy to clipboard operation
foundry-vtt-types copied to clipboard

Allow interior `SchemaField` and `EmbeddedDataField` instances to take `undefined` or `null` if they can be initialized

Open JPMeehan opened this issue 1 year ago • 1 comments
trafficstars

  • [ ] The darkness field in foundry.documents.BaseAmbientSound is a SchemaField that is not required and can be safely initialized from a value of an explicit undefined or null, but currently errors in the tests
  • [ ] The texture field of foundry.documents.BaseNote is an EmbeddedDataField that is not required and can be safely initialized from a value of an explicit undefined or null, but currently errors in the tests

JPMeehan avatar Jun 23 '24 21:06 JPMeehan

This is a part of the broader issue that the check for if field.initial can be assigned to the field's assignment type is incomplete.

LukeAbby avatar Jun 26 '24 22:06 LukeAbby