Hacker GitHub

← All repos

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

Mentions per year 41 mentions · busiest year 2016 (7)
20082026
  1. 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
  2. …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
  3. …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
  4. 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…
  5. There already is strictyaml: https://github.com/crdoconnor/strictyaml
    comment by zufallsheld · 2023-09-28 · in That's a Lot of YAML
  6. …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
  7. …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
  8. 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
  9. …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
  10. …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
  11. …that be YAML, JSON, HCL or whatever - but I'd like to. [1] https://hitchdev.com/strictyaml/ [2] https://github.com/crdoconnor/strictyaml
  12. …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
  13. 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
  14. …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
  15. …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)
  16. >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…
  17. https://github.com/crdoconnor/strictyaml - typesafe YAML parser (solves the issues mentioned in 2 and 1).
  18. …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
  19. …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
  20. …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?
  21. …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 :…
  22. …without any schemas. README page said speed is not a current priority, and that appears to be true. https://github.com/crdoconnor/strictyaml#strictyaml
  23. The parser linked from the article does: https://github.com/crdoconnor/strictyaml
  24. …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)
  25. …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)
  26. …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…
  27. …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
  28. If you want to validate YAML and want line numbers and code snippets in your errors, I wrote this: http://github.com/crdoconnor/strictyaml
  29. …a pared down 'dumb' YAML parser that assumes scalar values are strings unless directed otherwise: https://github.com/crdoconnor/strictyaml
  30. …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…
  31. StrictYAML - https://github.com/crdoconnor/strictyaml
    comment by vince14 · 2017-03-03 · in The Collapse of the Unix Philosophy
  32. StrictYAML ( https://github.com/crdoconnor/strictyaml ) looks promising to that effect.
    comment by yellowapple · 2017-03-03 · in The Collapse of the Unix Philosophy
  33. 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
  34. …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…
  35. 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
  36. 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
  37. …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
  38. 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
  39. …typing for explicit typing it becomes a much simpler language. This is what I ended up doing: https://github.com/crdoconnor/strictyaml