{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://comity.so/schemas/comity.json",
  "title": "Comity repo binding",
  "description": "comity.json at the repo root, written by `comity init`: the Comity org (and server) this repo's agents report to. Commit it. Holds no secrets. https://comity.so/docs/reference/cli#comityjson",
  "type": "object",
  "required": ["org"],
  "properties": {
    "$schema": {
      "type": "string",
      "description": "This schema's URL."
    },
    "org": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{1,62}$",
      "description": "Slug of the Comity org this repo belongs to (case-insensitive)."
    },
    "server": {
      "type": "string",
      "pattern": "^https?://",
      "description": "Comity server of that org. Overrides the server of your login for this repo. Default: the server of your login.",
      "examples": ["https://api.comity.so"]
    }
  }
}
