You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plex-Meta-Manager/json-schema
Chaz Larson 2fcacd7a07
[19] Add show_unfiltered to allow display of things that *do* match a filter (#2280)
2 weeks ago
..
README.md [13] add spellcheck 7 months ago
config-schema.json [19] Add show_unfiltered to allow display of things that *do* match a filter (#2280) 2 weeks ago
kitchen_sink_config.yml [19] Add show_unfiltered to allow display of things that *do* match a filter (#2280) 2 weeks ago
prototype_config.yml [9] Don't do the less check on smart collections (#2275) 1 month ago

README.md

JSON schemas for Kometa YAML files

How to:

Add this as the first line in your config.yml:

# yaml-language-server: $schema=https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/json-schema/config-schema.json

[change nightly to develop, or master if you wish]

Then open your config file in an editor that supports the use of JSON schema.

For example, VS Code with the Red Hat YAML extension.

This will give you context-sensitive hints and auto-complete for much of the Kometa config.yml

image

image

limitations:

  • template variables not cased for specific default file
  • template variables with keys are wildcarded
  • "position" attribute has no validation
  • "streaming" default has no validation
  • search has no validation; just accepts string
  • schedule has no validation; just accepts string

TODO: "list of coordinates"

  • schema for collection yaml
  • schema for metadata yaml
  • schema for overlay yaml
  • schema for template yaml

Notes: