enhancement
If a property is not "mandatory," it can be marked as "mandatory" for a specific form by using a customization with the "DynamicMandatory" annotation. This includes a calculation function that determines whether the associated form field should be "mandatory" in a specific situation. However, it is not possible to use a customization to mark the field as "mandatory" on a permanent basis.
It should also be possible to configure the direct "@Mandatory" annotation so that the field associated with the property is always "mandatory."
Application
#!xml
<customizations>
<property name="my.Type#my-property">
<annotations>
<mandatory/>
</annotations>
</property>
</customizations>
Test
TestDeclarativeFormConstraints.script.xml