Generic Validations for Logical Reference

The following validations are performed for handling logical references:

  • During create interaction, the validation ensures that the system doesn’t contain any instance with the same identifier within the scope of the resource type.

  • Referential integrity validation:

    • If the target resource type supports multiple resource types and while referencing no target is specified, then the system raises an error.

    • The validation checks if the target resource type supports multiple resource types. The reference type must be among the one that is specified.

    • The target reference identifier is checked against the use of official only.

    • When referencing, the use field is optional. If the value is specified, then it must be official. Otherwise, the system raises an error.

    • If the reference field has both identifier and logical ID values, then these values must point to the same target instance. If they don't match, the system raises an error.

  • The payload is enriched when the reference fields contain the identifier reference to store the logical ID of the target resource type.