Skip to content

Latest commit

 

History

History
89 lines (85 loc) · 2.75 KB

externals.md

File metadata and controls

89 lines (85 loc) · 2.75 KB

Externals structure documentation

options.externals is an array of Objects containing the following properties:

Name Type Description
context String A JSON Pointer containing the path to the containing property which was resolved
$ref String The original $ref property
original Object The original Swagger 2.0 version of the resolved reference
updated Object The OpenAPI 3.0 version of the resolved reference

Example

[
  {
    "context": "#/paths/~1subscriptions~1{subscriptionId}~1providers~1Microsoft.Commerce~1RateCard/get/x-ms-examples/GetRateCard",
    "$ref": "../examples/GetRatecard.json",
    "original": {
      "title": "Get RateCard",
      "parameters": {
        "subscriptionId": "6d61cc05-8f8f-4916-b1b9-f1d9c25aae27",
        "api-version": "2015-06-01-preview",
        "$filter": "OfferDurableId eq 'MS-AZR-0003P' and Currency eq 'USD' and Locale eq 'en-US' and RegionInfo eq 'US'"
      },
      "responses": {
        "200": {
          "body": {
            "OfferTerms": [],
            "Meters": [
              {
                "EffectiveDate": "2017-09-01T00:00:00Z",
                "IncludedQuantity": 0,
                "MeterCategory": "Test Category",
                "MeterId": "1d7518e5-bc2f-4a93-9057-1b3047856645",
                "MeterName": "Test Meter",
                "MeterRates": {
                  "0": 1.99,
                  "100": 0.99
                },
                "MeterRegion": "US West",
                "MeterSubCategory": "Test Subcategory",
                "MeterTags": [
                  "Third Party"
                ],
                "Unit": "Hours"
              }
            ]
          }
        }
      }
    },
    "updated": {
      "title": "Get RateCard",
      "parameters": {
        "subscriptionId": "6d61cc05-8f8f-4916-b1b9-f1d9c25aae27",
        "api-version": "2015-06-01-preview",
        "$filter": "OfferDurableId eq 'MS-AZR-0003P' and Currency eq 'USD' and Locale eq 'en-US' and RegionInfo eq 'US'"
      },
      "responses": {
        "200": {
          "body": {
            "OfferTerms": [],
            "Meters": [
              {
                "EffectiveDate": "2017-09-01T00:00:00Z",
                "IncludedQuantity": 0,
                "MeterCategory": "Test Category",
                "MeterId": "1d7518e5-bc2f-4a93-9057-1b3047856645",
                "MeterName": "Test Meter",
                "MeterRates": {
                  "0": 1.99,
                  "100": 0.99
                },
                "MeterRegion": "US West",
                "MeterSubCategory": "Test Subcategory",
                "MeterTags": [
                  "Third Party"
                ],
                "Unit": "Hours"
              }
            ]
          }
        }
      }
    }
  }
]