Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema validation to anyconfig data #26

Open
Grokzen opened this issue Jan 7, 2020 · 0 comments
Open

Add schema validation to anyconfig data #26

Grokzen opened this issue Jan 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Grokzen
Copy link
Contributor

Grokzen commented Jan 7, 2020

Environment

  • Phabfive version: latest
  • Python version: 3.x

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

@Grokzen Grokzen added the enhancement New feature or request label Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant