Bourse.Spec.Schema (bourse v0.1.0)

Copy Markdown View Source

Validation contract for complete, hand-owned runtime specifications.

Required slots distinguish three states: a missing slot is an authoring gap, null is an explicit not-applicable value only where a leaf permits it, and an empty map or list is an explicit declaration with no entries. Required non-empty slots reject all three incomplete states by naming the exact path.

Summary

Functions

Returns the closed oracle-profile vocabulary.

Validates one complete owned runtime specification.

Returns the current owned runtime-schema version.

Functions

oracle_names()

@spec oracle_names() :: [String.t()]

Returns the closed oracle-profile vocabulary.

validate!(spec, exchange_id)

@spec validate!(map(), String.t()) :: map()

Validates one complete owned runtime specification.

version()

@spec version() :: pos_integer()

Returns the current owned runtime-schema version.