JSON shape used for oracle scene-node comparisons.
Oracle nodes intentionally contain a small, stable subset of scene fields so fixture comparisons stay focused on resolver-visible behavior.
Summary
Functions
Decodes a JSON string into this struct.
Decodes a JSON string into this struct, raising on failure.
Dumps this struct into JSON-shaped data, respecting JSON field names.
Builds this struct from a decoded JSON map.
Builds this struct from a decoded JSON map, raising on failure.
Returns a JSON Schema-compatible schema map.
Returns a JSON Schema-compatible schema map.
Converts this struct into a JSON-shaped map.
Types
@type number_or_nil() :: number() | nil
@type t() :: %Figler.Scene.Graph.Oracle.Node{ characters: String.t() | nil, child_count: non_neg_integer(), children: [map()], guid: String.t() | nil, height: number_or_nil(), locked: boolean() | nil, name: String.t() | nil, parent: String.t() | nil, type: String.t() | nil, visible: boolean() | nil, width: number_or_nil(), x: number_or_nil(), y: number_or_nil() }
Functions
Decodes a JSON string into this struct.
Decodes a JSON string into this struct, raising on failure.
Dumps this struct into JSON-shaped data, respecting JSON field names.
Builds this struct from a decoded JSON map.
Builds this struct from a decoded JSON map, raising on failure.
Returns a JSON Schema-compatible schema map.
Returns a JSON Schema-compatible schema map.
Converts this struct into a JSON-shaped map.