{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sabli-app/json-schema/sabli-app-mind-summary-schema.json",
  "title": "MindSummary",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sabli-app-openapi.yml#/components/schemas/MindSummary",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "version": {
      "type": "string",
      "description": "mind@version, as the attribution shows it"
    },
    "name": {
      "type": "string"
    },
    "expert": {
      "type": "string"
    },
    "role": {
      "type": "string"
    },
    "tagline": {
      "type": "string"
    },
    "sample": {
      "type": "boolean",
      "description": "An example mind: a placeholder expert, not a real person"
    },
    "verified": {
      "type": "boolean"
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workflows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Workflow"
      }
    },
    "critique": {
      "type": "object",
      "description": "What a critique costs",
      "properties": {
        "credits": {
          "type": "integer"
        },
        "cost": {
          "type": "string"
        }
      },
      "required": [
        "credits",
        "cost"
      ]
    },
    "photo": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The expert's photo"
    },
    "url": {
      "type": "string",
      "format": "uri"
    }
  },
  "required": [
    "id",
    "version",
    "name",
    "expert",
    "role",
    "sample",
    "workflows",
    "critique",
    "photo",
    "url"
  ],
  "$defs": {
    "Workflow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "cost": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "cost"
      ]
    }
  }
}