heterogeneous-union

general > heterogeneous-union


Guidance

Unions between different types are not a good design practice. Object
shapes with scalar flags/properties are an acceptable alternative.

Applies to AnyShape

Constraint

Type: Rego Validation