canonical_json_bytes
Kind: Function
Domain: Scene and artifacts
Canonical import: from cadflow.scene import canonical_json_bytes
Signature
def canonical_json_bytes(value: 'Any') -> 'bytes'
Description
Return RFC 8785 JCS bytes, rejecting values outside the JCS domain.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
value | 'Any' | yes | - | Not explicitly described in the source docstring. |
Returns
Type: 'bytes'
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Behavior and constraints
- Serialized data is intended to remain JSON-safe and should be schema-validated when crossing trust boundaries.
Import check
from cadflow.scene import canonical_json_bytes