strictyaml
strictyaml copied to clipboard
Type-safe YAML parser and validator.
Your website includes a lot of criticism of YAML’s Norway problem (where `NO` would parse as the boolean `false`), but it neglects to mention that this behavior was already removed...
I've found some weird bug: calling `revalidate()` for the second time raises an `Invalid state` exception when optional fields with default values are present in the schema, but not in...
Incomplete revalidation also causes a mismatch between the ruamel and strictyaml internal states in the `YAMLChunk` object. This is the same outcome as in #183, but the initial cause of...
Using version 1.6.1: ``` >>> doc = strictyaml.as_document("foo") >>> doc YAML(foo) >>> doc.as_yaml() 'foo\n...\n' >>> round_trip = strictyaml.load(doc.as_yaml()) >>> round_trip YAML(foo ) >>> round_trip.data 'foo\n...\n' ``` This change during the...
Okay, I found a pretty weird case where YAMLValidationError output shows the wrong line numbers. I don't know why, but the combination of Slug, values with brackets and missing keys...
The example code in [docs page for Key Validator](https://hitchdev.com/strictyaml/using/alpha/compound/mapping-with-slug-keys/): ```python from collections import OrderedDict from strictyaml import Map, Optional, Str, Seq, load, ScalarValidator # This example uses slugify from the...
for example: `"\t{'a':1}"` fails allowing tab chars in json/flow should be normal/work fine, but it doesn't
Similar to the Email validator.
If anyone knows how to package this for the official package repos in various distros like archlinux, that would help adoption of strictyaml by other projects like tmuxp that are...