Skip to content

6. Tag ownership and namespaces

Every tag must mean the same thing to every reader. This section defines who may define a tag.

TAG_RESERVED MUST NOT

A tag defined by the core type set, by an official extension type set or by section 5 ($class) MUST NOT be redefined, overridden or given another form by any other type set or application.

TAG_UNNAMESPACED_RESERVED MUST NOT

Applications MUST NOT define tags without a . (such as $money): those tags are reserved for this specification.

TAG_NAMESPACE SHOULD

Application-defined tags SHOULD use a namespace followed by . and the type name, such as $acme.money, where the namespace identifies the application or organization.

TAG_GRAMMAR MUST

A tag that contains a . MUST be $ followed by two or more non-empty segments separated by ., and its first segment MUST NOT start with $ (a key starting with $$ is never a tag, ESCAPE_NOT_TYPED). Segments MUST NOT contain white space (Unicode property White_Space), control or invisible format characters (general categories Cc and Cf, such as U+200B and U+202E) or lone surrogates; any other character, including non-ASCII letters, is allowed. The last segment is the type name, and the segments before it form the namespace: in $acme.billing.money, the namespace is acme.billing. Tags such as $acme., $.money, $a..b and $acme. money are malformed.

TAG_MALFORMED_READ MUST

When deserializing, a typed value whose tag is malformed MUST be handled as an unknown tag (section 7).

TAG_DOLLAR_ONLY MUST

The tag $, made only of $, is not defined by this specification and MUST NOT be defined by applications (TAG_UNNAMESPACED_RESERVED). When deserializing, it MUST be handled as an unknown tag (section 7).

Source: lingodata/ecson@fe27835 · spec/sections/06-tag-ownership.md · ecson 0.2.0 (draft)

LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.