Model configuration validation

G-Cubed loads one UTF-8 YAML mapping, validates it against the packaged schema, and then checks it against the selected model and filesystem.

Common errors include:

  • an unquoted build number;
  • duplicate or unknown keys;
  • explicit null where a value must be omitted instead;
  • anchors, aliases, merge keys or custom tags;
  • quoted numbers or booleans;
  • unsafe filenames containing directories;
  • years in the wrong order;
  • a feature without its required mapping;
  • a region code not present in the model; and
  • a partial baseline-tuning regional override.

Read the error path

An error path such as baseline_tuning.real_interest_rates_in_base_year.region_overrides.LKA identifies the part of the YAML to correct. Fix the first reported structural error before interpreting later model-aware errors.

Start from a working build

For a complete maintained example, inspect models/6W/199/model_configuration.yaml. Copy only into another model after checking its version, regions, sectors, mappings and features.

Back to model configuration YAML


This site uses Just the Docs, a documentation theme for Jekyll.