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 yaml value validators/normalisers #27

Open
jayvdb opened this issue Jun 4, 2018 · 3 comments
Open

Add yaml value validators/normalisers #27

jayvdb opened this issue Jun 4, 2018 · 3 comments
Assignees
Milestone

Comments

@jayvdb
Copy link
Member

jayvdb commented Jun 4, 2018

One use of plugins is to validate and 'fix' yaml values.

e.g. if a value for foo was a string "abc", but template now expects a list, a normaliser plugin foo_validator could return an array with one item , ['abc']

@jayvdb jayvdb added this to the 0.5.0 milestone Jan 24, 2019
@jayvdb
Copy link
Member Author

jayvdb commented Jan 24, 2019

We can start this by using jinja2schema to create list of template vars and compare with yaml vars, which is #130 .

This will be an important change to moban plugin api.

that api change should also support other validation.

@ayan-b
Copy link
Member

ayan-b commented Mar 3, 2019

Assigning to myself.

@ayan-b ayan-b self-assigned this Mar 3, 2019
@ayan-b
Copy link
Member

ayan-b commented Mar 3, 2019

Since some part of this is not a moban exclusive problem, I think it would be a good idea to create different module altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants