{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hellodoggo.ai/non-human-intelligence/schemas/soft-launch/artwork-descriptions-v1.json",
  "title": "Hello Doggo artwork descriptions v1",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "schema_url",
    "canonical_origin",
    "canonical_url",
    "language",
    "provenance",
    "scope",
    "readable_text_policy",
    "records"
  ],
  "properties": {
    "schema_version": {
      "const": 1
    },
    "schema_url": {
      "const": "https://hellodoggo.ai/non-human-intelligence/schemas/soft-launch/artwork-descriptions-v1.json"
    },
    "canonical_origin": {
      "const": "https://hellodoggo.ai"
    },
    "canonical_url": {
      "const": "https://hellodoggo.ai/non-human-intelligence/artwork-descriptions.json"
    },
    "language": {
      "const": "en"
    },
    "scope": {
      "type": "string"
    },
    "readable_text_policy": {
      "type": "string"
    },
    "provenance": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ai_generated",
        "generated_by",
        "method",
        "generated_at",
        "artist_statement",
        "interpretation_of_artist_intent"
      ],
      "properties": {
        "ai_generated": {
          "const": true
        },
        "generated_by": {
          "const": "Hermes"
        },
        "method": {
          "type": "string"
        },
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "artist_statement": {
          "const": false
        },
        "interpretation_of_artist_intent": {
          "const": false
        }
      }
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "asset_id",
          "asset_sha256",
          "asset_url",
          "description",
          "readable_text"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^artwork-description:"
          },
          "asset_id": {
            "type": "string",
            "pattern": "^asset:"
          },
          "asset_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "asset_url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "readable_text": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "text_notes": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    }
  }
}
