{
  "$comment": "GENERATED FILE — DO NOT EDIT DIRECTLY. Source: packages/schemas/src. Regenerate with `npm run generate:json-schema --workspace=@spacecorp/schemas`.",
  "$id": "https://spacecorp.io/schemas/release.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "number",
      "const": 1
    },
    "id": {
      "type": "string",
      "pattern": "^release-[a-z0-9][a-z0-9-]*$"
    },
    "project": {
      "type": "string",
      "pattern": "^scp-[a-z0-9][a-z0-9-]*$"
    },
    "version": {
      "type": "string",
      "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
    },
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "artifacts": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^artifact-[a-z0-9][a-z0-9-]*$"
      }
    },
    "source_commit": {
      "type": "string",
      "pattern": "^[a-f0-9]{7,40}$"
    },
    "source_repository": {
      "type": "string",
      "minLength": 1
    },
    "notes": {
      "type": "string",
      "minLength": 1
    },
    "compatibility": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "schema_version",
    "id",
    "project",
    "version",
    "date",
    "artifacts",
    "source_commit",
    "notes",
    "compatibility"
  ],
  "additionalProperties": false
}
