Description
I implemented a TOML schema with the aim of keeping it as Obivious and Minimal as possible, while still being useful.
I found several suggestions for TOML schemas in #116, #792 and #1038. But I think that my approach is much simpler.
For example, the following TOML file:
name = "Orange"
physical.color = "orange"
physical.shape = "round"
site."google.com" = true
Would have this schema:
name = "string"
physical.color = "string"
physical.shape = "string"
site."*" = "boolean"
I noticed that issues #116 and #792 were recently closed. In closing these issues arp242 wrote:
"A good start would not just be a specification, but an implementation"
Well, my schema specification is fully implemented in python at: https://github.com/udifuchs/toml-schema/
There are tests covering all relevant examples from the TOML documentation and there is a schema for pyproject.toml
in the examples folder.
I am not sure if TOML is planning to have an official schema. But this could be a recommended schema.