{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openquarry.dev/schema/v1/weave.schema.json",
  "title": "Weave",
  "type": "object",
  "required": [
    "slug",
    "title"
  ],
  "properties": {
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9-]+$"
    },
    "title": {
      "type": "string",
      "minLength": 3
    },
    "kind": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9-]*$",
      "description": "What this weave is, in the publisher's own noun. A weave of kind course is a course."
    },
    "description": {
      "type": "string"
    },
    "maintainedBy": {
      "type": "string"
    },
    "license": {
      "type": "string",
      "default": "MIT"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
