JSONSchema for the frigate.yaml?
See original GitHub issueDescribe what you are trying to accomplish and why in non technical terms
I use the VS Code add-on on Hassio to edit the frigate.yaml
. But oftenly I have to go back and forth to the documentation and try to restart the Frigate server to find out if I messed up with it or not.
Describe the solution you’d like With a JSON Schema, we could leverage VS Code’s YAML validation almost for free, by just configuring it to use it, or by adding this in the top of the YAML file:
# yaml-language-server: $schema=<urlToTheSchema>
Describe alternatives you’ve considered Going back and forward to the Frigate docs and restarting it as mentioned.
Additional context Not exactly the point here, but there are also tools which can create documentation in markdown format which can be used with Docusaurus based on the JSON Schema, so that you don’t have to maintain the documentation in two different places. Only in the JSON Schema.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
This is why we migrated the config parser to Pydantic, but I don’t think the endpoint that exposes the JSON schema was created yet.
It worked! 😄
I used:
# yaml-language-server: $schema=http://ccab4aaf-frigate:5000/api/config/schema