8000 TOML schema · Issue #1057 · toml-lang/toml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
TOML schema #1057
88BC
Open
Open
@udifuchs

Description

@udifuchs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0