crdoconnor/strictyaml
View on GitHub ↗ ★ 1,632 Python
Type-safe YAML parser and validator.
41 mentions on Hacker News by 25 people: 2 stories, 39 comments · first 2016-08-01 · latest 2025-08-09
20082026
-
I found that post unconvincing. > It's very verbose. This is his example: https://github.com/crdoconnor/strictyaml/blob/master/hitch/s... I think you shouldn't use yaml or toml for this. > TOML's hierarchies are difficult to infer from…
comment by ioasuncvinvaer · 2025-08-09 · in I prefer human-readable file formats -
…everyone basically already knows¹ than to invent a new format with relatively zero support? 1: https://github.com/crdoconnor/strictyaml
comment by rsyring · 2025-04-27 · in CONL: "Markdown" for your config files -
…a (non turing complete) language that is dual use - it generates docs and runs tests. For example: https://github.com/crdoconnor/strictyaml/blob/master/hitch/s... And: https://hitchdev.com/strictyaml/using/alpha/scalar/email-and...
comment by hitchdev · 2024-10-17 · in Unit tests as documentation -
It's readable, it just desperately needs type safety: https://github.com/crdoconnor/strictyaml When I read "gbq enabled: yes" I don't worry about whether it's a string or a boolean when reading it, I worry about whether it's a string or a…
comment by hitchstory · 2023-10-15 · in Show HN: Pg_yregress, Structured Testing for Postgres -
There already is strictyaml: https://github.com/crdoconnor/strictyaml
comment by zufallsheld · 2023-09-28 · in That's a Lot of YAML -
…it's a great format - terse and far less syntactic noise than other formats. This is why I wrote https://github.com/crdoconnor/strictyaml so people could write type safe yaml and get instantaneous, clear error messages on those things.
comment by hitchstory · 2023-09-28 · in That's a Lot of YAML -
…be unfamiliar with it, and IIRC the only parsers are in Python. But then I could use StrictYaml too https://github.com/crdoconnor/strictyaml
comment by FireInsight · 2023-09-21 · in XML is better than YAML – Hear me out -
Or if you want to go really minimalist there's also https://github.com/crdoconnor/strictyaml
comment by wyuenho · 2023-01-12 · in The Yaml document from hell -
…Norway's country code as a boolean (NO). Not sure how widespread YAML 1.2 adoption is though. https://github.com/crdoconnor/strictyaml/issues/186
comment by andai · 2022-10-05 · in Advanced Scientific Data Format -
…significant enough improvement over JSON, and I'd say those two features are more than enough [1]: https://github.com/crdoconnor/strictyaml/issues/37 [2]: https://github.com/crdoconnor/strictyaml/issues/38
comment by woojoo666 · 2022-06-08 · in Why JSON Isn’t A Good Configuration Language (2018) -
…that be YAML, JSON, HCL or whatever - but I'd like to. [1] https://hitchdev.com/strictyaml/ [2] https://github.com/crdoconnor/strictyaml
comment by brigandish · 2022-01-24 · in I accidentally used YAML.parse instead of JSON.parse and it worked -
…on a restricted subset of yaml and allows to use a schema to have a type safe validator. https://github.com/crdoconnor/strictyaml
comment by pietroppeter · 2022-01-21 · in Typed Config Languages -
I do think some of the more "advanced" features are definitely a mistake. StrictYAML ( https://github.com/crdoconnor/strictyaml ) is a limited, much saner subset of YAML that I wish people would use more:…
comment by meowface · 2021-08-14 · in YAML and Configuration Files -
…is Python only. Any others? [1] https://amzn.github.io/ion-docs/ [2] https://nestedtext.org/ [3] https://github.com/crdoconnor/strictyaml/
comment by atombender · 2021-04-03 · in The Norway Problem -
…Project with README that is partially generated from the code samples in the tests: https://github.com/crdoconnor/strictyaml with the README template: https://github.com/crdoconnor/strictyaml/blob/master/docs/in... that grabs code snippets…
comment by pydry · 2020-11-27 · in Readme Driven Development (2010) -
>basically YAML, "but better" That was my intention behind this, too: https://github.com/crdoconnor/strictyaml/ The general structure of YAML is fine I think but its feature set grew a little bit out of control. The "cleanliness" of the…
comment by pydry · 2020-10-04 · in NestedText, a nice alternative to JSON, YAML, TOML -
https://github.com/crdoconnor/strictyaml - typesafe YAML parser (solves the issues mentioned in 2 and 1).
comment by pydry · 2020-04-24 · in Best Practices for Working with Configuration in Python Applications -
…a YAML subset that removes some of the problematic features. The implementation is in Python. [0] https://github.com/crdoconnor/strictyaml
comment by tjalfi · 2019-08-18 · in YAML: Probably not so great after all -
…just ignores that part of the spec and parses everything that isn't defined in a schema as a string: http://github.com/crdoconnor/strictyaml It also does away with a few other anti-features (e.g. the object parsing that led to the epic RoR…
comment by crdoconnor · 2019-03-21 · in In Defense of YAML -
…the basic structure I hated the complicated bullshit like the "we also parse JSON" layered on top: https://github.com/crdoconnor/strictyaml Worse than JSON though, is the Norway problem. If you remove this stuff and start validating it…
comment by crdoconnor · 2019-02-08 · in Why are we templating YAML? -
…readable documentation in the form of markdown from the test: Original test (behavioral example) : https://github.com/crdoconnor/strictyaml/blob/master/hitch/s... Example docs generated from that test :…
comment by pytester · 2018-12-13 · in Etsy’s experiment with immutable documentation -
…without any schemas. README page said speed is not a current priority, and that appears to be true. https://github.com/crdoconnor/strictyaml#strictyaml
comment by jgalt212 · 2018-06-23 · in YAML: probably not so great after all (2017) -
The parser linked from the article does: https://github.com/crdoconnor/strictyaml
comment by TimZehta · 2018-06-21 · in YAML: probably not so great after all (2017) -
…use a hair cut. Out of curiosity, did you see the parser linked to at the end of the article? ( https://github.com/crdoconnor/strictyaml ) That was my attempt at giving YAML a haircut. I'd be curious to know what you thought. Thank you for…
comment by crdoconnor · 2018-06-20 · in YAML: probably not so great after all (2017) -
▲ 3
StrictYAML's FAQ – Why Not Use TOML?story by strictever · 2018-05-26 · 0 comments
-
…that have inconsistent indents. Somebody reported exactly that as an issue on my issue tracker: https://github.com/crdoconnor/strictyaml/issues/23 I'm aware that there are a bunch of annoyances like that, but I'm still convinced the core…
comment by crdoconnor · 2018-02-06 · in S-Expressions (1997) -
…a non-programmer to maintain, might I suggest storing the data as YAML and parsing with my library? https://github.com/crdoconnor/strictyaml I wrote it partly to make it easier for non-programmers to maintain structured data - which seems…
comment by crdoconnor · 2018-01-04 · in How and why we teach non-engineers to use GitHub at Thread -
…such as anchor, aliases and tags[2], which further make the YAML spec incredibly complex. [1]: https://github.com/crdoconnor/strictyaml/blob/master/FAQ.rst... [2]: http://www.yaml.org/spec/1.2/spec.html
comment by sirn · 2017-12-18 · in Show HN: Cr – Runs your tasks at maximum concurrency -
If you want to validate YAML and want line numbers and code snippets in your errors, I wrote this: http://github.com/crdoconnor/strictyaml
comment by crdoconnor · 2017-11-05 · in Show HN: PySchemes – A library for validating data structures in Python -
…a pared down 'dumb' YAML parser that assumes scalar values are strings unless directed otherwise: https://github.com/crdoconnor/strictyaml
comment by crdoconnor · 2017-08-19 · in My last name makes me invisible to Computers (2015) -
▲ 2
StrictYAML FAQstory by rectang · 2017-05-11 · 1 comment
-
…out the crappy features leaving just the basic core (and added optional type-safety/validation): https://github.com/crdoconnor/strictyaml I also tried to write up a more extensive justification for anybody who scratching their head trying…
comment by crdoconnor · 2017-05-11 · in HOCON – Human-Optimized Config Object Notation -
StrictYAML - https://github.com/crdoconnor/strictyaml
comment by vince14 · 2017-03-03 · in The Collapse of the Unix Philosophy -
StrictYAML ( https://github.com/crdoconnor/strictyaml ) looks promising to that effect.
comment by yellowapple · 2017-03-03 · in The Collapse of the Unix Philosophy -
If you decide to use YAML, make sure to check out Strict YAML[1] and its FAQ[2]. [1]: https://github.com/crdoconnor/strictyaml [2]: https://github.com/crdoconnor/strictyaml/blob/master/FAQ.rst...
comment by sirn · 2016-10-26 · in Parsing JSON is a Minefield -
…parser that refuses to parse anything except that subset that most people use 99% of the time: https://github.com/crdoconnor/strictyaml IMO TOML is syntactically messy, especially when dealing with hierarchical data, and a whole new config…
comment by crdoconnor · 2016-09-29 · in Armor – Simple HTTP server, supports HTTP/2 and auto TLS -
I actually went over why I'd consider this is a better format than TOML: https://github.com/crdoconnor/strictyaml/blob/master/FAQ.rst...
comment by crdoconnor · 2016-09-05 · in Bugs in the YAML specification -
I love the example at https://github.com/crdoconnor/strictyaml/blob/master/FAQ.rst... . Convinced in 2 seconds that full YAML is idiotic.
comment by akkartik · 2016-09-04 · in Bugs in the YAML specification -
…to cut out 90% of the crap, leaving the nice, readable core (which maps on to JSON pretty neatly): https://github.com/crdoconnor/strictyaml
comment by crdoconnor · 2016-09-04 · in Bugs in the YAML specification -
I agree. That's partly why I wrote this: https://github.com/crdoconnor/strictyaml e.g. >>> load(x, Map({"YAML": MapPattern(Str(), Str())})) {'YAML': {'spring,summer,fall,winter': '3,6,9,12', "takes a no for a 'no'": 'no', 'the game is':…
comment by crdoconnor · 2016-08-21 · in Fixing JSON -
…typing for explicit typing it becomes a much simpler language. This is what I ended up doing: https://github.com/crdoconnor/strictyaml
comment by crdoconnor · 2016-08-01 · in How to Avoid Being Called a Bozo When Producing XML (2005)