{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/spack-develop-yaml/latest.json",
  "title": "Spack repository configuration file schema",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/develop.json",
    "sourceSha256": "e59d6d8fe940e059538bdcf50b70e8c45dba98b3bbef047af4964c239447bbfb",
    "fileMatch": [
      "**/*spack/**/develop.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "develop": {
      "type": "object",
      "default": {},
      "description": "Configuration for local development of Spack packages",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "spec": {
            "type": "string",
            "description": "Spec of the package to develop, e.g. hdf5@1.12.0"
          },
          "path": {
            "type": "string",
            "description": "Path to the source code for this package, can be absolute or relative to the environment directory"
          }
        },
        "description": "Name of a package to develop, with its spec and optional source path",
        "required": [
          "spec"
        ],
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
