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

Investigate StrictYAML #53

Open
ghickman opened this issue Jul 4, 2022 · 0 comments
Open

Investigate StrictYAML #53

ghickman opened this issue Jul 4, 2022 · 0 comments

Comments

@ghickman
Copy link
Contributor

ghickman commented Jul 4, 2022

This could be an interesting replacement for ruamel: https://hitchdev.com/strictyaml/

We can pass a schema to it (which is considered the One Source of Truth™) to define key types.

Because we can define the types to coerce to, it doesn't require values be wrapped in quotes: https://hitchdev.com/strictyaml/why-not/toml/#4-syntax-typing

Some things to investigate:

  • how much of a drop-in replacemnt for ruamel is it?
  • does it still need c-code? (this would affect some tooling in places like opensafely-cli's vendoring)
  • how does VSCode handle not needing to quote values? (does it throw false negatives)
  • what do the error messags look like?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant