{
  "openapi": "3.0.0",
  "info": {
    "title": "Outstanding amount of Government Bonds under the Infrastructure Bond Programme and Government Sustainable Bond Programme - Original maturity – Renminbi-denominated",
    "description": "For more details, refer the link: https://apidocs.hkma.gov.hk/documentation/market-data-and-statistics/monthly-statistical-bulletin/ibpgsbp/out-amt-gov-bonds-original-maturity-ibpgsbp-rmb\n\nKnown response envelopes are shown where available. Missing record fields and other unavailable response schemas remain unspecified.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/ibpgsbp",
      "variables": {}
    }
  ],
  "paths": {
    "/out-amt-gov-bonds-original-maturity-ibpgsbp-rmb": {
      "get": {
        "summary": "Retrieve data of Outstanding amount of Government Bonds under the Infrastructure Bond Programme and Government Sustainable Bond Programme - Original maturity – Renminbi-denominated",
        "parameters": [
          {
            "name": "segment",
            "in": "query",
            "description": "",
            "required": true,
            "style": "form",
            "explode": true,
            "schema": {
              "$ref": "#/components/schemas/Segment"
            }
          },
          {
            "name": "pagesize",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "choose",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortby",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortorder",
            "in": "query",
            "description": "",
            "style": "form",
            "explode": true,
            "schema": {
              "$ref": "#/components/schemas/Sortorder"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Expected response to a valid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response"
                },
                "x-response-schema-status": {
                  "status": "partial",
                  "reason": "Documented response envelope preserved; record contents remain unknown because publisher record model definitions are missing.",
                  "missingReferences": [
                    "#/components/schemas/IBP",
                    "#/components/schemas/GSBP"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexcpeted error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "getOutAmtGovBondsOriginalMaturityIbpgsbpRmb"
      }
    }
  },
  "components": {
    "schemas": {
      "Segment": {
        "title": "segment",
        "enum": [
          "IBP",
          "GSBP"
        ],
        "type": "string",
        "example": "IBP",
        "x-enum-elements": [
          {
            "name": "IBP",
            "description": ""
          },
          {
            "name": "GSBP",
            "description": ""
          }
        ]
      },
      "Sortorder": {
        "title": "sortorder",
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string",
        "example": "asc",
        "x-enum-elements": [
          {
            "name": "asc",
            "description": ""
          },
          {
            "name": "desc",
            "description": ""
          }
        ]
      },
      "Response": {
        "title": "response",
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/Header"
          },
          "result": {
            "$ref": "#/components/schemas/Result"
          }
        }
      },
      "Header": {
        "title": "Header",
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "err_code": {
            "type": "string"
          },
          "err_msg": {
            "type": "string"
          }
        }
      },
      "Result": {
        "title": "Result",
        "type": "object",
        "properties": {
          "datasize": {
            "type": "integer",
            "format": "int32"
          },
          "records": {
            "type": "array",
            "items": {
              "description": "Record contents are unknown: the preserved publisher specification references record models that it does not define. No record properties are inferred.",
              "x-response-schema-status": {
                "status": "unknown",
                "missingReferences": [
                  "#/components/schemas/IBP",
                  "#/components/schemas/GSBP"
                ]
              }
            },
            "description": ""
          }
        }
      },
      "ErrorResponse": {
        "title": "errorResponse",
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/Header"
          }
        }
      }
    }
  },
  "x-coverage": {
    "requestDefinitions": "preserved-and-resolved",
    "responseSchemas": "partial; known envelope retained where safely separable; missing publisher record models explicitly unknown",
    "authentication": "not_documented_unknown; no public-access claim added"
  },
  "x-source-evidence": [
    {
      "sourceUrl": "https://apidocs.hkma.gov.hk/wp-content/uploads/swagger/T10030102-swagger.json",
      "originalStatus": "invalid"
    }
  ],
  "x-unknown-response-record-schemas": [
    {
      "path": "/out-amt-gov-bonds-original-maturity-ibpgsbp-rmb",
      "method": "GET",
      "statusCode": "200",
      "mediaType": "application/json",
      "missingReferences": [
        "#/components/schemas/IBP",
        "#/components/schemas/GSBP"
      ],
      "sourceSchemaRef": "#/components/schemas/Response",
      "mode": "known-envelope-unknown-record-items",
      "projections": [
        {
          "sourcePointer": "#/components/schemas/Result/properties/records/items",
          "missingReferences": [
            "#/components/schemas/IBP",
            "#/components/schemas/GSBP"
          ],
          "replacement": "unconstrained_schema_with_explicit_unknown_annotation"
        }
      ]
    }
  ],
  "x-omitted-response-schemas": []
}
