Skip to main content

Module schema_source

Module schema_source 

Source
Expand description

Where a family’s class table comes from.

By default it is the table cimgen generated. With the dynamic-schema feature, an ENTSO-E RDFS directory can supply it instead, so a new profile version is a data load rather than a recompile.

Resolution order, highest first:

  1. [load_from] — an explicit call, for libraries and tests
  2. CIMOXIDE_PROFILES — for the CLI, the servers and the Python bindings. It lists directories, separated as in PATH, searched for profile files that declare themselves a family’s vocabulary ([cimschema::profile_file::Pool]); a family it holds none of keeps its generated table
  3. the generated table

A directory that is missing or fails to parse falls back to the generated table with a warning. Silently serving a stale schema because a path had a typo is the worst outcome available here.

Functions§

resolve
Resolve the schema for a family.