calliope-project / calliope

A multi-scale energy systems modelling framework
https://www.callio.pe
Apache License 2.0
286 stars 93 forks source link

Validate models against YAML schema #230

Closed sjpfenninger closed 8 months ago

sjpfenninger commented 5 years ago

Rather than piecemeal validation as partially implemented e.g. in #219, validate models against a complete YAML schema.

timtroendle commented 5 years ago

To add some details to this. This may bring the following benefits:

  1. Cleaner Calliope code.
  2. Robust error detection (I personally still often run into situations where my mistakes remain undetected).
  3. Standard way of validation, meaning that you can use any tool to validate models. In particular, this will allow you to have online validation, auto-correction, and tab-completion in your IDE/editor.

The third may likely not work with Calliope's import mechanism. But it seems, there is no standard way of doing this.

sjpfenninger commented 4 years ago

Closing as this being worked on now with https://github.com/calliope-project/typedconfig

brynpickering commented 8 months ago

Introduced in #518