{
  "openapi": "3.1.0",
  "info": {
    "title": "Education Bureau — School Registration Information",
    "version": "csdi-native-readonly-v1",
    "description": "Deterministic derivative of retained native CSDI metadata. Read-only GET operations are selected only where native capabilities and protocol documentation support them. Publisher originals remain separate. Successful metadata retrieval does not prove current data-query success, complete response fields or all layer combinations."
  },
  "paths": {
    "/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer/{layerId}/query": {
      "get": {
        "operationId": "ArcgisFeatureServerQueryFeatures",
        "tags": [
          "ArcGIS REST"
        ],
        "summary": "Query published features",
        "description": "Read-only GET query follows the source-advertised Query capability. One parameterized operation covers all queryable layers. Metadata field types are declared without inventing universally required attributes. Omitted f may produce the native REST default representation, which is not asserted as a JSON payload.",
        "parameters": [
          {
            "name": "layerId",
            "in": "path",
            "required": true,
            "description": "Published queryable layer or table. Values are publisher identifiers; examples are choices, not a closed enumeration. The full ID/title directory is in x-csdi-layer-choices.",
            "schema": {
              "type": "integer"
            },
            "examples": {
              "choice1": {
                "summary": "SchoolAccommodation",
                "value": 0
              },
              "choice2": {
                "summary": "SchoolBasicInfo",
                "value": 1
              },
              "choice3": {
                "summary": "SchoolPremises",
                "value": 2
              }
            },
            "x-choice-count": 3
          },
          {
            "name": "f",
            "in": "query",
            "required": false,
            "description": "Advertised query representation. Supply this selector for the represented JSON/GeoJSON/PBF responses.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "geojson",
                "pbf"
              ]
            },
            "example": "json"
          },
          {
            "name": "where",
            "in": "query",
            "required": false,
            "description": "SQL WHERE expression over the published fields; source protocol supports this read-only query filter.",
            "schema": {
              "type": "string"
            },
            "example": "1=1"
          },
          {
            "name": "outFields",
            "in": "query",
            "required": false,
            "description": "Comma-separated source field names, or *. Field schemas are conditional on the selected layer and returned fields.",
            "schema": {
              "type": "string"
            },
            "example": "*"
          },
          {
            "name": "returnGeometry",
            "in": "query",
            "required": false,
            "description": "Whether native feature geometry should be included.",
            "schema": {
              "type": "boolean"
            },
            "example": false
          },
          {
            "name": "resultRecordCount",
            "in": "query",
            "required": false,
            "description": "Bound returned records where the selected layer advertises pagination; no global range is inferred.",
            "schema": {
              "type": "integer"
            },
            "example": 1,
            "x-supported-layer-ids": [
              0,
              1,
              2
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Native publisher response; protocol or business errors may also be returned. Metadata connection and actual data-query success are separate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisJsonEnvelope"
                }
              },
              "application/geo+json": {
                "schema": {
                  "$ref": "#/components/schemas/ArcgisFeatureServerArcgisGeoJson"
                }
              },
              "application/x-protobuf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/"
        },
        "servers": [
          {
            "url": "https://portal.csdi.gov.hk"
          }
        ],
        "x-native-source-evidence": [
          {
            "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer?f=pjson",
            "sha256": "b36a2e8768b997d022b5289b3ae3a6b14f1e8af742ec0f2db4f502f7d3335317",
            "httpStatus": 200,
            "contentType": "text/plain;charset=UTF-8",
            "role": "arcgis-service",
            "parseStatus": "pass",
            "kind": "arcgis-service"
          },
          {
            "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer/0?f=pjson",
            "sha256": "674c49597b07ea0baf795f72a945772160cf8e419acdb0754c8bdb6f5a78e21a",
            "httpStatus": 200,
            "contentType": "text/plain;charset=UTF-8",
            "role": "arcgis-layer",
            "parseStatus": "pass",
            "kind": "arcgis-layer"
          },
          {
            "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer/1?f=pjson",
            "sha256": "be6a3d210eef09f2d5929527b626f21c664e4129f592bf04768a7eb74a0b5043",
            "httpStatus": 200,
            "contentType": "text/plain;charset=UTF-8",
            "role": "arcgis-layer",
            "parseStatus": "pass",
            "kind": "arcgis-layer"
          },
          {
            "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer/2?f=pjson",
            "sha256": "3b79fa7cedeaf1c11581a4dccb4fad6af296a85237147e3fd6ba191e2ccbd850",
            "httpStatus": 200,
            "contentType": "text/plain;charset=UTF-8",
            "role": "arcgis-layer",
            "parseStatus": "pass",
            "kind": "arcgis-layer"
          }
        ]
      }
    },
    "/server/services/common/edb_rcd_1633336116013_47102/MapServer/WFSServer": {
      "get": {
        "operationId": "WfsMapServerGetFeature",
        "tags": [
          "WFS"
        ],
        "summary": "Retrieve published features",
        "description": "One read-only GET operation selects published feature types by name. Attribute types derive from retained DescribeFeatureType XSD when available; missing XSD, geometry, unread response data and unknown fields remain explicit limitations.",
        "parameters": [
          {
            "name": "service",
            "in": "query",
            "required": true,
            "description": "OGC service identifier.",
            "schema": {
              "type": "string",
              "enum": [
                "WFS"
              ]
            },
            "example": "WFS"
          },
          {
            "name": "version",
            "in": "query",
            "required": true,
            "description": "Exact capabilities version.",
            "schema": {
              "type": "string",
              "enum": [
                "2.0.0"
              ]
            },
            "example": "2.0.0"
          },
          {
            "name": "request",
            "in": "query",
            "required": true,
            "description": "Read-only operation advertised by GetCapabilities.",
            "schema": {
              "type": "string",
              "enum": [
                "GetFeature"
              ]
            },
            "example": "GetFeature"
          },
          {
            "name": "typeNames",
            "in": "query",
            "required": true,
            "description": "Published feature type names; multiple selections follow the advertised protocol syntax. Values are publisher identifiers; examples are choices, not a closed enumeration. The full ID/title directory is in x-csdi-layer-choices.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "choice1": {
                "summary": "SchoolPremises",
                "value": "csdi:SchoolPremises"
              },
              "choice2": {
                "summary": "SchoolBasicInfo",
                "value": "csdi:SchoolBasicInfo"
              },
              "choice3": {
                "summary": "SchoolAccommodation",
                "value": "csdi:SchoolAccommodation"
              }
            },
            "x-choice-count": 3
          },
          {
            "name": "outputFormat",
            "in": "query",
            "required": false,
            "description": "Advertised native representation; JSON, GML, CSV and images are kept distinct.",
            "schema": {
              "type": "string",
              "enum": [
                "GML32",
                "GML32+ZIP",
                "GML32+GZIP",
                "application/gml+xml; version=3.2",
                "GML3",
                "GML3+ZIP",
                "GML3+GZIP",
                "text/xml; subtype=gml/3.1.1",
                "GML2",
                "GML2+ZIP",
                "GML2+GZIP",
                "text/xml; subtype=gml/2.1.2",
                "GEOJSON",
                "GEOJSON+ZIP",
                "GEOJSON+GZIP",
                "ESRIGEOJSON",
                "ESRIGEOJSON+ZIP",
                "ESRIGEOJSON+GZIP",
                "KML",
                "application/vnd.google-earth.kml xml",
                "application/vnd.google-earth.kml+xml",
                "KMZ",
                "application/vnd.google-earth.kmz",
                "SHAPE+ZIP",
                "CSV",
                "CSV+ZIP",
                "CSV+GZIP",
                "Geopackage",
                "Geopackage+ZIP"
              ]
            },
            "example": "GEOJSON"
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "OGC bounded feature limit; example requests one feature without claiming a server-wide bound.",
            "schema": {
              "type": "integer"
            },
            "example": 1
          },
          {
            "name": "srsName",
            "in": "query",
            "required": false,
            "description": "Output CRS choices advertised by at least one feature type; support may vary by selected type.",
            "schema": {
              "type": "string"
            },
            "example": "urn:ogc:def:crs:EPSG::2326"
          }
        ],
        "responses": {
          "200": {
            "description": "Native publisher response; protocol or business errors may also be returned. Metadata connection and actual data-query success are separate.",
            "content": {
              "application/gml+xml": {
                "schema": {
                  "type": "string"
                }
              },
              "text/xml": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WfsMapServerWfsFeatureCollection"
                }
              },
              "application/geo+json": {
                "schema": {
                  "$ref": "#/components/schemas/WfsMapServerWfsFeatureCollection"
                }
              },
              "application/vnd.google-earth.kml+xml": {
                "schema": {
                  "type": "string"
                }
              },
              "*/*": {
                "schema": {
                  "description": "Native Geopackage+ZIP output; wire media type/fields are not constrained."
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "description": "Native CSV; row/column wire conformance is not inferred from JSON schemas."
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://docs.ogc.org/is/09-025r2/09-025r2.html"
        },
        "x-advertised-crss": [
          "urn:ogc:def:crs:EPSG::2326"
        ],
        "servers": [
          {
            "url": "https://portal.csdi.gov.hk"
          }
        ],
        "x-native-source-evidence": [
          {
            "url": "https://portal.csdi.gov.hk/server/services/common/edb_rcd_1633336116013_47102/MapServer/WFSServer?service=wfs&request=GetCapabilities",
            "sha256": "126bcb8ea700d967b50dc4b34924de219d314bba7159d650bc73d2af3f52065e",
            "httpStatus": 200,
            "contentType": "text/xml;charset=UTF-8",
            "role": "wfs-capabilities",
            "parseStatus": "pass",
            "kind": "wfs-capabilities"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ArcgisFeatureServerArcgisLayer0Attributes": {
        "type": "object",
        "properties": {
          "PermittedAccommodation": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "PermittedAccommodation",
            "type": [
              "number",
              "null"
            ]
          },
          "PermittedAccommodation_nil": {
            "description": "Publisher field type: esriFieldTypeSmallInteger",
            "title": "PermittedAccommodation_nil",
            "type": [
              "integer",
              "null"
            ]
          },
          "PermittedAccommodationKGWD": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "PermittedAccommodationKGWD",
            "type": [
              "number",
              "null"
            ]
          },
          "PermittedAccommodationKGWD_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "PermittedAccommodationKGWD_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "PremisesCode": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "PremisesCode",
            "type": [
              "number",
              "null"
            ]
          },
          "PremisesDescChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "PremisesDescChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 345
          },
          "PremisesDescChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "PremisesDescChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "PremisesDescEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "PremisesDescEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 333
          },
          "RemarksChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RemarksChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 240
          },
          "RemarksChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RemarksChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "RemarksEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RemarksEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 150
          },
          "RemarksEng_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RemarksEng_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "RoomNo": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RoomNo",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 10
          },
          "RoomNo_nil": {
            "description": "Publisher field type: esriFieldTypeSmallInteger",
            "title": "RoomNo_nil",
            "type": [
              "integer",
              "null"
            ]
          },
          "RoomType": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RoomType",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1
          },
          "SchoolNameChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 87
          },
          "SchoolNameChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "SchoolNameEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 140
          },
          "SchoolNumber": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "SchoolNumber",
            "type": [
              "number",
              "null"
            ]
          },
          "SubPremisesCode": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "SubPremisesCode",
            "type": [
              "number",
              "null"
            ]
          },
          "SubPremisesDescChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SubPremisesDescChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 445
          },
          "SubPremisesDescChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SubPremisesDescChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "SubPremisesDescEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SubPremisesDescEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 250
          },
          "easting": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "easting",
            "type": [
              "number",
              "null"
            ]
          },
          "northing": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "northing",
            "type": [
              "number",
              "null"
            ]
          },
          "OBJECTID": {
            "description": "Publisher field type: esriFieldTypeOID",
            "title": "OBJECTID",
            "type": "integer"
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisLayer1Attributes": {
        "type": "object",
        "properties": {
          "DistrictChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "DistrictChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 12
          },
          "DistrictEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "DistrictEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 19
          },
          "FaxNumber": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "FaxNumber",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 9
          },
          "FaxNumber_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "FaxNumber_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "FinanceTypeChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "FinanceTypeChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 24
          },
          "FinanceTypeEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "FinanceTypeEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 30
          },
          "GeoInfoMapUrl": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "GeoInfoMapUrl",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 47
          },
          "GeoInfoMapUrl_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "GeoInfoMapUrl_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "LocationID": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "LocationID",
            "type": [
              "number",
              "null"
            ]
          },
          "LocationMapUrl": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "LocationMapUrl",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 61
          },
          "LocationMapUrl_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "LocationMapUrl_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "ProvisionalRegistrationDate": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "ProvisionalRegistrationDate",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 10
          },
          "ProvisionalRegistrationDate_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "ProvisionalRegistrationDate_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "RegistrationDate": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RegistrationDate",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 10
          },
          "RegistrationStatusChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RegistrationStatusChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 12
          },
          "RegistrationStatusEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "RegistrationStatusEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 24
          },
          "SchoolAddressChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolAddressChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 598
          },
          "SchoolAddressChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolAddressChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "SchoolAddressEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolAddressEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 373
          },
          "SchoolLevelChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolLevelChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 12
          },
          "SchoolLevelEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolLevelEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 14
          },
          "SchoolNameChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 87
          },
          "SchoolNameChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "SchoolNameEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 140
          },
          "SchoolNumber": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "SchoolNumber",
            "type": [
              "number",
              "null"
            ]
          },
          "SchoolRegistrationNumber": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolRegistrationNumber",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 7
          },
          "SchoolSessionChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolSessionChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 6
          },
          "SchoolSessionEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolSessionEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 9
          },
          "SchoolWebSite": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolWebSite",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 124
          },
          "SchoolWebSite_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolWebSite_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "StudentGenderChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "StudentGenderChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 6
          },
          "StudentGenderEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "StudentGenderEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 5
          },
          "TelephoneNumber": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "TelephoneNumber",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 31
          },
          "TelephoneNumber_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "TelephoneNumber_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "easting": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "easting",
            "type": [
              "number",
              "null"
            ]
          },
          "northing": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "northing",
            "type": [
              "number",
              "null"
            ]
          },
          "OBJECTID": {
            "description": "Publisher field type: esriFieldTypeOID",
            "title": "OBJECTID",
            "type": "integer"
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisLayer2Attributes": {
        "type": "object",
        "properties": {
          "PremisesCode": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "PremisesCode",
            "type": [
              "number",
              "null"
            ]
          },
          "PremisesDescChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "PremisesDescChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 318
          },
          "PremisesDescChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "PremisesDescChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "PremisesDescEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "PremisesDescEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 281
          },
          "SchoolNameChi": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameChi",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 87
          },
          "SchoolNameChi_nil": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameChi_nil",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4
          },
          "SchoolNameEng": {
            "description": "Publisher field type: esriFieldTypeString",
            "title": "SchoolNameEng",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 146
          },
          "SchoolNumber": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "SchoolNumber",
            "type": [
              "number",
              "null"
            ]
          },
          "easting": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "easting",
            "type": [
              "number",
              "null"
            ]
          },
          "northing": {
            "description": "Publisher field type: esriFieldTypeDouble",
            "title": "northing",
            "type": [
              "number",
              "null"
            ]
          },
          "OBJECTID": {
            "description": "Publisher field type: esriFieldTypeOID",
            "title": "OBJECTID",
            "type": "integer"
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisFeatureSet": {
        "type": "object",
        "properties": {
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attributes": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer1Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer2Attributes"
                    }
                  ]
                },
                "geometry": {
                  "description": "Native geometry and spatial reference are not constrained by attribute metadata."
                }
              },
              "additionalProperties": true
            }
          },
          "exceededTransferLimit": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisGeoJson": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "properties": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer1Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer2Attributes"
                    }
                  ]
                },
                "geometry": {
                  "description": "Geometry representation is not constrained by the retained attribute metadata."
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "ArcgisFeatureServerArcgisJsonEnvelope": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "attributes": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer1Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer2Attributes"
                    }
                  ]
                },
                "properties": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer0Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer1Attributes"
                    },
                    {
                      "$ref": "#/components/schemas/ArcgisFeatureServerArcgisLayer2Attributes"
                    }
                  ]
                },
                "geometry": {
                  "description": "Geometry is not constrained by attribute metadata."
                }
              },
              "additionalProperties": true
            }
          },
          "exceededTransferLimit": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      },
      "WfsMapServerWfsFeatureCollection": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "properties": {
                  "description": "DescribeFeatureType attribute declarations unavailable; record fields remain unknown."
                },
                "geometry": {
                  "description": "Geometry representation is not constrained by the retained attribute metadata."
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      }
    }
  },
  "externalDocs": {
    "url": "https://portal.csdi.gov.hk/csdi-webpage/doc/GeoSpatialServices"
  },
  "x-csdi-layer-choices": [
    {
      "id": 0,
      "title": "SchoolAccommodation",
      "protocol": "arcgis"
    },
    {
      "id": 1,
      "title": "SchoolBasicInfo",
      "protocol": "arcgis"
    },
    {
      "id": 2,
      "title": "SchoolPremises",
      "protocol": "arcgis"
    },
    {
      "id": "csdi:SchoolPremises",
      "title": "SchoolPremises",
      "protocol": "wfs"
    },
    {
      "id": "csdi:SchoolBasicInfo",
      "title": "SchoolBasicInfo",
      "protocol": "wfs"
    },
    {
      "id": "csdi:SchoolAccommodation",
      "title": "SchoolAccommodation",
      "protocol": "wfs"
    }
  ],
  "x-csdi-source-evidence": [
    {
      "url": "https://portal.csdi.gov.hk/geoportal/csw?service=CSW&version=2.0.2&request=GetRecordById&elementSetName=full&id=edb_rcd_1633336116013_47102",
      "sha256": "cc7862cf175ea18a4f138b221a3b34a8940de9133284b85a59f907611c3973c9",
      "httpStatus": 200,
      "contentType": "application/xml;charset=UTF-8",
      "role": "csw-record",
      "parseStatus": "pass",
      "kind": "csw-record"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer?f=pjson",
      "sha256": "b36a2e8768b997d022b5289b3ae3a6b14f1e8af742ec0f2db4f502f7d3335317",
      "httpStatus": 200,
      "contentType": "text/plain;charset=UTF-8",
      "role": "arcgis-service",
      "parseStatus": "pass",
      "kind": "arcgis-service"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer/0?f=pjson",
      "sha256": "674c49597b07ea0baf795f72a945772160cf8e419acdb0754c8bdb6f5a78e21a",
      "httpStatus": 200,
      "contentType": "text/plain;charset=UTF-8",
      "role": "arcgis-layer",
      "parseStatus": "pass",
      "kind": "arcgis-layer"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer/1?f=pjson",
      "sha256": "be6a3d210eef09f2d5929527b626f21c664e4129f592bf04768a7eb74a0b5043",
      "httpStatus": 200,
      "contentType": "text/plain;charset=UTF-8",
      "role": "arcgis-layer",
      "parseStatus": "pass",
      "kind": "arcgis-layer"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/rest/services/common/edb_rcd_1633336116013_47102/FeatureServer/2?f=pjson",
      "sha256": "3b79fa7cedeaf1c11581a4dccb4fad6af296a85237147e3fd6ba191e2ccbd850",
      "httpStatus": 200,
      "contentType": "text/plain;charset=UTF-8",
      "role": "arcgis-layer",
      "parseStatus": "pass",
      "kind": "arcgis-layer"
    },
    {
      "url": "https://portal.csdi.gov.hk/server/services/common/edb_rcd_1633336116013_47102/MapServer/WFSServer?service=wfs&request=GetCapabilities",
      "sha256": "126bcb8ea700d967b50dc4b34924de219d314bba7159d650bc73d2af3f52065e",
      "httpStatus": 200,
      "contentType": "text/xml;charset=UTF-8",
      "role": "wfs-capabilities",
      "parseStatus": "pass",
      "kind": "wfs-capabilities"
    }
  ],
  "x-csdi-source-scope": {
    "partialProtocols": [
      {
        "serviceId": "csdi-service-32d528210e2ac728cabae6d8",
        "code": "discovery_metadata_error",
        "reason": "No retained response; cache-only mode performs no HTTP request",
        "url": "https://portal.csdi.gov.hk/server/services/common/edb_rcd_1633336116013_47102/MapServer/WFSServer?service=wfs&version=2.0.0&request=DescribeFeatureType"
      },
      {
        "code": "metadata_http_not_200",
        "url": "https://portal.csdi.gov.hk/server/services/common/edb_rcd_1633336116013_47102/MapServer/WMSServer?service=WMS&request=GetCapabilities",
        "httpStatus": 403
      },
      {
        "serviceId": "csdi-service-d295e4af1f0afd76f213bed9",
        "code": "discovery_metadata_error",
        "reason": "Metadata request status http_error",
        "url": "https://portal.csdi.gov.hk/server/services/common/edb_rcd_1633336116013_47102/MapServer/WMSServer?service=WMS&request=GetCapabilities"
      },
      {
        "serviceId": "csdi-service-d295e4af1f0afd76f213bed9",
        "protocol": "wms",
        "code": "unsupported_or_incomplete_native_contract",
        "reason": "No retained parseable WMS GetCapabilities"
      }
    ],
    "nativeMetadataStatus": {
      "status": "http_200_retained",
      "http200Sources": 6
    },
    "fullSourceCompleteness": "not_established",
    "actualDataQueriesByConversion": 0
  }
}
