Skip to content

Investigate defining a schema for faucet.yaml & gauge.yaml #3482

Open
@gizmoguy

Description

@gizmoguy

There are systems like https://github.com/alecthomas/voluptuous which let you programmatically define a YAML configuration schema.

Defining our configuration via a schema that can be validated against would give us some benefits:

  1. Easy to validate for parsing issues (and automatically generating nice error messages)
  2. Easy to autogenerate documentation
  3. Easy to deprecate and change options

I suggest voluptuous as that's what https://github.com/home-assistant/core uses and they seem to have good success, however there might be better systems.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions