{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vehicle-api/json-schema/vehicle-api-photo-list-response-schema.json",
  "title": "PhotoListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vehicle-api-media-api-openapi.yml#/components/schemas/PhotoListResponse",
  "type": "object",
  "properties": {
    "photos": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Photo"
      }
    },
    "photosCount": {
      "type": "integer"
    }
  },
  "$defs": {
    "Photo": {
      "type": "object",
      "description": "Vehicle photo asset with multiple size variants",
      "properties": {
        "id": {
          "type": "string",
          "description": "Photo identifier"
        },
        "title": {
          "type": "string",
          "description": "Photo description"
        },
        "category": {
          "type": "string",
          "description": "Photo category: exterior, interior, color"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sizes": {
          "type": "array",
          "description": "Available image sizes with URLs",
          "items": {
            "type": "object",
            "properties": {
              "size": {
                "type": "string"
              },
              "link": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}