private suspend fun validateTemplatedFieldsAfterTemplateUpdate(node: TemplatedNode, templatedFields: OptionalInput<List<JSONFieldInput>>)

After the template of node was updated, validate all fields and remove fields which are no longer necessary

Parameters

node

the node of which to validate the fields

templatedFields

values to update the templatedFields

Throws

if the old value for a templated field is invalid