{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dream-sports/json-schema/dream-sports-app-schema.json",
  "title": "App",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dream-sports-apps-api-openapi.yml#/components/schemas/App",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "collaborators": {
      "$ref": "#/$defs/CollaboratorMap"
    },
    "deployments": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "organisation": {
      "type": "object",
      "properties": {
        "orgId": {
          "type": "string"
        },
        "orgName": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "CollaboratorMap": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/CollaboratorProperties"
      }
    },
    "CollaboratorProperties": {
      "type": "object",
      "properties": {
        "permission": {
          "type": "string",
          "enum": [
            "Owner",
            "Collaborator"
          ]
        },
        "isCurrentAccount": {
          "type": "boolean",
          "description": "Whether this is the authenticated user"
        }
      }
    }
  }
}