{
  "$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/project.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "number",
      "const": 1
    },
    "id": {
      "type": "string",
      "pattern": "^scp-[a-z0-9][a-z0-9-]*$"
    },
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]*$"
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "short_name": {
      "type": "string",
      "minLength": 1
    },
    "summary": {
      "type": "string",
      "minLength": 20
    },
    "status": {
      "type": "string",
      "enum": [
        "idea",
        "research",
        "prototype",
        "active",
        "stable",
        "maintenance",
        "paused",
        "archived",
        "deprecated"
      ]
    },
    "maturity": {
      "type": "string",
      "enum": [
        "concept",
        "alpha",
        "beta",
        "production",
        "legacy"
      ]
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "unlisted",
        "restricted",
        "private"
      ]
    },
    "version": {
      "type": "string",
      "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
    },
    "created": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "updated": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "categories": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "tags": {
      "minItems": 0,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "capabilities": {
      "type": "object",
      "properties": {
        "documentation": {
          "type": "boolean"
        },
        "api": {
          "type": "boolean"
        },
        "downloads": {
          "type": "boolean"
        },
        "three_d": {
          "type": "boolean"
        }
      },
      "required": [
        "documentation",
        "api",
        "downloads",
        "three_d"
      ],
      "additionalProperties": false
    },
    "links": {
      "type": "object",
      "properties": {
        "canonical": {
          "type": "string",
          "pattern": "^\\/[^\\s]*$"
        },
        "documentation": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\/[^\\s]*$"
            },
            {
              "type": "null"
            }
          ]
        },
        "demo": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\/[^\\s]*$"
                },
                {
                  "type": "string",
                  "format": "uri"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "repository": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "canonical",
        "documentation",
        "demo",
        "repository"
      ],
      "additionalProperties": false
    },
    "license": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1
        },
        "content": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "code",
        "content"
      ],
      "additionalProperties": false
    },
    "source": {
      "type": "object",
      "properties": {
        "authority": {
          "type": "string",
          "const": "git"
        },
        "path": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "authority",
        "path"
      ],
      "additionalProperties": false
    },
    "featured": {
      "type": "object",
      "properties": {
        "homepage": {
          "type": "boolean"
        },
        "priority": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "homepage",
        "priority"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "schema_version",
    "id",
    "slug",
    "name",
    "short_name",
    "summary",
    "status",
    "maturity",
    "visibility",
    "version",
    "created",
    "updated",
    "categories",
    "tags",
    "capabilities",
    "links",
    "license",
    "source",
    "featured"
  ],
  "additionalProperties": false
}
