{
  "$id": "Venue.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "Id.json"
    },
    "version": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991,
      "description": "Raised by the server on every change; clients send the version they last saw so conflicts can be spotted."
    },
    "updatedAt": {
      "$ref": "Timestamp.json"
    },
    "deletedAt": {
      "description": "Set when the record is deleted; deleted records are kept so other devices learn of the deletion.",
      "$ref": "Timestamp.json"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "address": {
      "description": "Street address; often where you park.",
      "type": "string",
      "maxLength": 300
    },
    "position": {
      "description": "The address's position (parking), for directions.",
      "$ref": "Position.json"
    },
    "pitches": {
      "type": "array",
      "items": {
        "$ref": "Pitch.json"
      },
      "description": "Named pitches (\"Field 3\"), each with its own position."
    },
    "notes": {
      "type": "string",
      "maxLength": 2000
    },
    "tags": {
      "$ref": "Tags.json"
    }
  },
  "required": [
    "id",
    "version",
    "updatedAt",
    "name",
    "pitches"
  ],
  "additionalProperties": false
}
