dynamist / phabfive

A command line tool to interact with Phabricator
Apache License 2.0
4 stars 2 forks source link

Add schema validation to anyconfig data #26

Open Grokzen opened 4 years ago

Grokzen commented 4 years ago

Environment

Proposed Functionality

Add json schema validation to the internal data/config that is using anyconfig to build the config file based on files on disk.

https://python-anyconfig.readthedocs.io/en/latest/usage.html#validation-with-and-or-generate-json-schema

An example/WIP schema.yaml:

type: object
properties:
  PHABFIVE_DEBUG: {type: boolean}
  PHAB_TOKEN: {type: string}
  PHAB_URL: {type: string}

Use Case

None

Other?

None