{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dyno-nobel/main/json-schema/dyno-nobel-ipflocation-search-result-schema.json",
  "title": "IPFLocationSearchResult",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dyno-nobel-openapi.yml#/components/schemas/IPFLocationSearchResult",
  "type": "object",
  "properties": {
    "result": {
      "$ref": "#/$defs/IPFLocationResultItemPaging"
    },
    "facets": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/IPFLocationGroupFacetCount"
      }
    },
    "resultMessage": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "IPFLocationGroupFacetCount": {
      "type": "object",
      "properties": {
        "facetName": {
          "type": [
            "string",
            "null"
          ]
        },
        "items": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/OptionItem"
          }
        }
      },
      "additionalProperties": false
    },
    "IPFLocationResultItem": {
      "type": "object",
      "properties": {
        "siteName": {
          "type": [
            "string",
            "null"
          ]
        },
        "heading": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "pinColour": {
          "type": [
            "string",
            "null"
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "phoneNumber": {
          "$ref": "#/$defs/LinkPropsVm"
        }
      },
      "additionalProperties": false
    },
    "IPFLocationResultItemPaging": {
      "type": "object",
      "properties": {
        "items": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/IPFLocationResultItem"
          }
        },
        "totalItem": {
          "type": "integer",
          "format": "int64"
        },
        "currentPage": {
          "type": "integer",
          "format": "int64"
        },
        "pageSize": {
          "type": "integer",
          "format": "int64"
        },
        "totalPage": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "hasNextPage": {
          "type": "boolean",
          "readOnly": true
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "LinkPropsVm": {
      "type": "object",
      "properties": {
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "target": {
          "type": [
            "string",
            "null"
          ]
        },
        "href": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "ariaLabel": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "OptionItem": {
      "type": "object",
      "properties": {
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "nullable": true
        },
        "count": {
          "type": "integer",
          "format": "int64"
        },
        "selected": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}