{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisle-wedding/json-schema/aisle-wedding-photo-registration-result-schema.json",
  "title": "PhotoRegistrationResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisle-wedding-media-api-openapi.yml#/components/schemas/PhotoRegistrationResult",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/PublicPhotoRegistration"
    }
  },
  "$defs": {
    "PublicPhoto": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "url",
        "width",
        "height",
        "section",
        "captured_at",
        "sort_index",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^pho_.+$"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "section": {
          "type": "string"
        },
        "captured_at": {
          "oneOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "type": "null"
            }
          ]
        },
        "sort_index": {
          "type": "integer"
        },
        "created_at": {
          "$ref": "#/$defs/Timestamp"
        }
      }
    },
    "PublicPhotoRegistration": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "added",
        "skipped",
        "photos"
      ],
      "properties": {
        "added": {
          "type": "integer"
        },
        "skipped": {
          "type": "integer"
        },
        "photos": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PublicPhoto"
          }
        }
      }
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "An RFC 3339 UTC timestamp with milliseconds."
    }
  }
}