serialize
serialize
#
Type ↔ JSON schema, and structural equality between types.
STRUCTURAL_TAGS = frozenset({'struct', 'array', 'map', 'path', 'void'})
module-attribute
#
The wire tags whose shape is spelled out inline; every other tag names a scalar.
from_schema(obj)
#
Rebuild a type from its wire form.
Composites recurse; a scalar resolves to its registered type, or to an
opaque scalar carrying the document's kind/extensions when this
process does not implement the name.
Source code in capturegraph-lib/capturegraph/types/schema/serialize.py
schema(cgtype)
#
structural_eq(a, b)
#
Whether two types describe the same on-disk structure; scalar extensions are ignored.