This repository contains the JSON Schema for the new recipe.yaml
format proposed in the following conda CEPs:
- conda/ceps#54
- conda/ceps#56
- conda/ceps#57 (not yet implemented)
There is a fully JSON Schema 1.0 compliant schema.json at the root of this repository.
This file is generated from the model.py
using pydantic
.
You can use the schema in any editor that supports JSON Schema for yaml. Using the YAML extension for VSCode all you need to do is add:
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
to the top of your recipe file and you should have autocompletion and validation!
The project is using pixi
to be able to quickly format, validate and generate the schema.
Note: When submitting changes to model.py
make sure to run following commands locally first.(inorder)
pixi run fmt
pixi run lint
pixi run generate > schema.json
pixi run test