Skip to content

JSON schemas #41

@slundi

Description

@slundi

Hello

To validate configuration and theme we could use JSON schemas. It allows to:

  • check validity
  • create documentation
  • IDE can offer code completion with it

I've begun there: main...slundi:nyaa:json-schemas (I've tried IA to generate them... I need to check them now)

How to use it

Using relative path:

#:schema ./foo-schema.json
# ^---- Using relative path

$schema = "https://raw.github.com/Beastwick18/nyaa/theme.schema.json"
# ^---- If we import it from an URL

foo = "bar"

Ressources

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions