{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fieldrobin-com/json-schema/fieldrobin-com-directory-listing-public-list-response-schema.json",
  "title": "DirectoryListingPublicListResponse",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fieldrobin-com-openapi.json#/components/schemas/DirectoryListingPublicListResponse",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DirectoryListingPublic"
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "current_page": {
          "type": "integer"
        },
        "last_page": {
          "type": "integer"
        },
        "per_page": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "DirectoryListingPhoto": {
      "type": "object",
      "required": [
        "id",
        "kind",
        "public_id",
        "url",
        "sort_order"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "kind": {
          "type": "string",
          "enum": [
            "photo",
            "logo"
          ]
        },
        "public_id": {
          "type": "string",
          "format": "uuid"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "alt_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "sort_order": {
          "type": "integer"
        },
        "mime_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "byte_size": {
          "type": "integer"
        },
        "original_filename": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "DirectoryListingPublic": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "name",
        "industry_key",
        "industry_label",
        "metro_key",
        "review_count",
        "services",
        "claim_status",
        "is_claimed",
        "logo_url",
        "photos"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "industry_key": {
          "type": "string"
        },
        "industry_label": {
          "type": "string"
        },
        "metro_key": {
          "type": "string"
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "website_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "postal_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "rating": {
          "type": [
            "number",
            "null"
          ]
        },
        "review_count": {
          "type": "integer"
        },
        "short_description": {
          "type": [
            "string",
            "null"
          ]
        },
        "services": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "claim_status": {
          "type": "string",
          "enum": [
            "unclaimed",
            "claim_pending",
            "claimed"
          ]
        },
        "is_claimed": {
          "type": "boolean"
        },
        "google_maps_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "logo_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "photos": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DirectoryListingPhoto"
          }
        }
      }
    }
  }
}