Serialization
Serialization
Serialization of tags applies to all formats and protocols. Its restrictions include:
- The serialization format must preserve the TagKey-TagValue mapping
- The combined size of all keys and value MUST be at most 8192 bytes.
The “combined size” restriction applies to deserialized tags so that the set of serializable TagContexts is independent of the serialization format
Error handling
- The result of serialiation or deserialization should ALWAYS be a complete TagContext or an error. There are NO partial failures
- Serialization should result in an error if the TagContext doesn’t meet the size restrictions above
- Deserialization should result in an error if the serialized TagContext cannot be parsed or if it contains a TagKey or TagValue above size restrictions
- Deserialization should result in an error if it doesn’t meet the size restrictions above
References
Resource | URL |
---|---|
Serialization specs reference | specs/TagContext.Serialization |
Error handling specs reference | specs/TagContext.Serialization.ErrorHandling |