Rules and Guidelines for Complex Data Type Definitions
Rules and Guidelines for Complex Data Type Definitions
Consider the following rules and guidelines when you work with complex data type definitions:
A struct port or a struct element in a complex port must reference a complex data type definition.
You cannot reference a complex data type definition in one mapping to a complex port in another mapping.
You cannot reference a recursive data type definition to a struct port or a struct element in a complex port.
Changes to the elements in a complex data type definition are automatically propagated to complex ports that reference the complex data type definition.
If you change the name of the type definition library or the complex data type definition, you must update the name in expressions that use complex functions such as STRUCT_AS, RESPEC, and CAST.
In a midstream parsing mapping, the source string that contains JSON or XML elements is defined with a complex data type definition. For more information, see
Midstream Parsing of Hierarchical Data.