Expand description
The draft BMOPF task force JSON schema (frederikgeth/bmopf-report).
Everything is explicit SI: volts, watts, vars, ohms, siemens, meters,
radians, string bus ids and terminal names. The schema sets
additionalProperties: false on every element, so the strict writer
drops what the schema cannot carry and says so per field; the dropped
data stays in the model’s extras, never in the emitted JSON.
Structs§
- Bmopf
Write Options - Options for BMOPF JSON output.
Constants§
- BMOPF_
SCHEMA_ ID - The
$idof the BMOPF schema this writer targets, and the value it stamps intometa.$schema. The upstream$idis not version pinned, so use it together withBMOPF_SCHEMA_VERSION. - BMOPF_
SCHEMA_ VERSION - The
versionfield of the vendored BMOPF schema (tests/data/dist/bmopf/draft_bmopf_schema.json). Upstream can change the schema without a version bump, so use it together withBMOPF_SCHEMA_ID.
Functions§
- parse_
bmopf_ file - parse_
bmopf_ str - write_
bmopf_ json - Writes the strict BMOPF document. Every field the schema cannot carry is reported in the warnings.
- write_
bmopf_ json_ with_ options - Writes BMOPF JSON with explicit options.