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

Validate/pre-process data from nodes #88

Open
stsewd opened this issue Oct 30, 2020 · 0 comments
Open

Validate/pre-process data from nodes #88

stsewd opened this issue Oct 30, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@stsewd
Copy link
Member

stsewd commented Oct 30, 2020

Some nodes require some type of data that we need to validate, like TestBlock.validator (this should be an importable module).
Or CodeBlock where the content should be a list of lines. Or Admonition.type where it should be one of the three types. Maybe we can do the validation like django rest framework does, or something more simple like the rst directive does

lira/lira/parsers/rst.py

Lines 73 to 76 in 298679e

option_spec = {
"help": str,
"validator": importable,
}

@stsewd stsewd added the enhancement New feature or request label Oct 30, 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