Colm O'Connor
Colm O'Connor
This theme seems to be broken on the latest version of huge. It's a shame - it's a nice theme.
``` >>> choices = validators.Any(["choiceA", "choiceB", "choiceC"]) >>> Scheme(choices).validate("choiceA") 'choiceA' ``` Instead of: ``` >>> Scheme(choices).validate("hello") Traceback (most recent call last): File "", line 1, in ValueError: value did not...
Similar to the Email validator.
The grammar needs to support the following features: * Mappings with hierarchies: ``` a: c: d e: f ``` * Lists - e.g. ``` a: - 1 - 2 -...
Starting in python 3.7 all dicts are guaranteed to maintain order: https://mail.python.org/pipermail/python-dev/2017-December/151283.html OrderedDict is thus unnecessary, although still necessary for any version of python below 3.7. ## Drawbacks * Backwards...
Feature request made by @bt2901 in https://github.com/crdoconnor/strictyaml/pull/69 Perhaps also check to see if it is fed a validator first and raise a specific error message for that, before checking to...
Create a new kind of mapping validator where it looks for one key and then once it sees that key it expects several others (some may be optional). Primary use...
strictyaml is underpinned by ruamel.yaml - this is a dependency used to parse the YAML. It parses the YAML into an abstract syntax tree which is then run through the...
Issue raised by @Carpetsmoker in #23: ``` foo: - one - two - three ``` is (`yaml` module): {'foo': ['one', 'two - three']} or (`strictyaml` module): YAML(OrderedDict([('foo', ['one', 'two -...