References
Last updated
Was this helpful?
Last updated
Was this helpful?
The CommsDSL allows references to fields or other definitions in order not to duplicate information and avoid various copy/paste errors. The referenced element must be defined (if in the same file) or processed (if in schema file) before the definition of the referencing element.
For example, message defines its payload as a reference (alias) to the globally defined field. This field is defined before the message definition. the opposite order must cause an error. It allows easy avoidance of circular references.
When referencing a field or a value defined in a namespace (any namespace, not just different one), the former must be prefixed with a namespace(s) name(s) separated by a . (dot).