{
  "title": "A JSON Schema for Swagger 2.0 API.",
  "id": "https://raw.githubusercontent.com/Azure/autorest/master/schema/swagger-extensions.json#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "required": ["swagger", "info", "paths"],
  "additionalProperties": false,
  "patternProperties": {
    "^x-.*$": {
      "$ref": "http://json.schemastore.org/swagger-2.0#/definitions/vendorExtension"
    }
  },
  "properties": {
    "swagger": {
      "type": "string",
      "enum": ["2.0"],
      "description": "The Swagger version of this document."
    },
    "info": {
      "$ref": "#/definitions/info"
    },
    "host": {
      "type": "string",
      "pattern": "^[^{}/ :\\\\]+(?::\\d+)?$",
      "description": "The host (name or ip) of the API. Example: 'swagger.io"
    },
    "basePath": {
      "type": "string",
      "pattern": "^/",
      "description": "The base path to the API. Example: '/api'."
    },
    "schemes": {
      "$ref": "http://json.schemastore.org/swagger-2.0#/definitions/schemesList"
    },
    "consumes": {
      "description": "A list of MIME types accepted by the API.",
      "$ref": "http://json.schemastore.org/swagger-2.0#/definitions/mediaTypeList"
    },
    "produces": {
      "description": "A list of MIME types the API can produce.",
      "$ref": "http://json.schemastore.org/swagger-2.0#/definitions/mediaTypeList"
    },
    "paths": {
      "$ref": "#/definitions/paths"
    },
    "x-ms-paths": {
      "$ref": "#/definitions/xmsPaths"
    },
    "x-ms-parameterized-host": {
      "$ref": "#/definitions/xmsParameterizedHost"
    },
    "definitions": {
      "$ref": "#/definitions/definitions"
    },
    "parameters": {
      "$ref": "#/definitions/parameterDefinitions"
    },
    "responses": {
      "$ref": "#/definitions/responseDefinitions"
    },
    "security": {
      "$ref": "http://json.schemastore.org/swagger-2.0#/definitions/security"
    },
    "securityDefinitions": {
      "$ref": "http://json.schemastore.org/swagger-2.0#/definitions/securityDefinitions"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/tag"
      },
      "uniqueItems": true
    },
    "externalDocs": {
      "$ref": "#/definitions/externalDocs"
    },
    "x-ms-secondary-file": {
      "type": "boolean"
    },
    "x-ms-permissions": {
      "$ref": "#/definitions/xmsPermissions"
    }
  },
  "definitions": {
    "info": {
      "type": "object",
      "description": "General information about the API.",
      "required": ["version", "title"],
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "title": {
          "type": "string",
          "description": "A unique and precise title of the API.",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "description": "A semantic version number of the API.",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "description": "A longer description of the API. Should be different from the title.  GitHub Flavored Markdown is allowed."
        },
        "termsOfService": {
          "type": "string",
          "description": "The terms of service for the API."
        },
        "contact": {
          "$ref": "#/definitions/contact"
        },
        "license": {
          "$ref": "#/definitions/license"
        },
        "x-ms-code-generation-settings": {
          "$ref": "#/definitions/xmsCodeGenerationSettings"
        }
      }
    },
    "contact": {
      "type": "object",
      "description": "Contact information for the owners of the API.",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "description": "The identifying name of the contact person/organization."
        },
        "url": {
          "type": "string",
          "description": "The URL pointing to the contact information.",
          "format": "uri"
        },
        "email": {
          "type": "string",
          "description": "The email address of the contact person/organization.",
          "format": "email"
        }
      },
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "license": {
      "type": "object",
      "required": ["name"],
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the license type. It's encouraged to use an OSI compatible license."
        },
        "url": {
          "type": "string",
          "description": "The URL pointing to the license.",
          "format": "uri"
        }
      },
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "paths": {
      "type": "object",
      "description": "Relative paths to the individual endpoints. They must be relative to the 'basePath'.",
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        },
        "^/": {
          "$ref": "#/definitions/pathItem"
        }
      },
      "additionalProperties": false
    },
    "definitions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/schema"
      },
      "description": "One or more JSON objects describing the schemas being consumed and produced by the API."
    },
    "parameterDefinitions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/parameter"
      },
      "description": "One or more JSON representations for parameters"
    },
    "responseDefinitions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/response"
      },
      "description": "One or more JSON representations for parameters"
    },
    "externalDocs": {
      "type": "object",
      "additionalProperties": false,
      "description": "information about external documentation",
      "required": ["url"],
      "properties": {
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "examples": {
      "type": "object",
      "additionalProperties": true
    },
    "mimeType": {
      "type": "string",
      "description": "The MIME type of the HTTP message."
    },
    "operation": {
      "type": "object",
      "required": ["responses"],
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "summary": {
          "type": "string",
          "description": "A brief summary of the operation."
        },
        "description": {
          "type": "string",
          "description": "A longer description of the operation, GitHub Flavored Markdown is allowed."
        },
        "externalDocs": {
          "$ref": "#/definitions/externalDocs"
        },
        "operationId": {
          "type": "string",
          "description": "A unique identifier of the operation."
        },
        "produces": {
          "description": "A list of MIME types the API can produce.",
          "$ref": "#/definitions/mediaTypeList"
        },
        "consumes": {
          "description": "A list of MIME types the API can consume.",
          "$ref": "#/definitions/mediaTypeList"
        },
        "parameters": {
          "$ref": "#/definitions/parametersList"
        },
        "responses": {
          "$ref": "#/definitions/responses"
        },
        "schemes": {
          "$ref": "#/definitions/schemesList"
        },
        "deprecated": {
          "type": "boolean",
          "default": false
        },
        "security": {
          "$ref": "http://json.schemastore.org/swagger-2.0#/definitions/security"
        },
        "x-ms-odata": {
          "$ref": "#/definitions/xmsOData"
        },
        "x-ms-pageable": {
          "$ref": "#/definitions/xmsPageable"
        },
        "x-ms-long-running-operation": {
          "$ref": "#/definitions/xmsLongRunningOperation"
        },
        "x-ms-long-running-operation-options": {
          "$ref": "#/definitions/xmsLongRunningOperationOptions"
        },
        "x-ms-request-id": {
          "$ref": "#/definitions/xmsRequestId"
        },
        "x-ms-examples": {
          "$ref": "#/definitions/xmsExamples"
        },
        "x-ms-client-name": {
          "type": "string",
          "description": "A code-generator-friendly name for the generated method name for this operation."
        }
      }
    },
    "pathItem": {
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "$ref": {
          "type": "string"
        },
        "get": {
          "$ref": "#/definitions/operation"
        },
        "put": {
          "$ref": "#/definitions/operation"
        },
        "post": {
          "$ref": "#/definitions/operation"
        },
        "delete": {
          "$ref": "#/definitions/operation"
        },
        "options": {
          "$ref": "#/definitions/operation"
        },
        "head": {
          "$ref": "#/definitions/operation"
        },
        "patch": {
          "$ref": "#/definitions/operation"
        },
        "parameters": {
          "$ref": "#/definitions/parametersList"
        }
      }
    },
    "responses": {
      "type": "object",
      "description": "Response objects names can either be any valid HTTP status code or 'default'.",
      "minProperties": 1,
      "additionalProperties": false,
      "patternProperties": {
        "^([0-9]{3})$|^(default)$": {
          "$ref": "#/definitions/responseValue"
        },
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "not": {
        "type": "object",
        "additionalProperties": false,
        "patternProperties": {
          "^x-.*$": {
            "$ref": "#/definitions/vendorExtension"
          }
        }
      }
    },
    "responseValue": {
      "oneOf": [
        {
          "$ref": "#/definitions/response"
        },
        {
          "$ref": "#/definitions/jsonReference"
        }
      ]
    },
    "response": {
      "type": "object",
      "required": ["description"],
      "properties": {
        "description": {
          "type": "string"
        },
        "schema": {
          "oneOf": [
            {
              "$ref": "#/definitions/schema"
            },
            {
              "$ref": "#/definitions/fileSchema"
            }
          ]
        },
        "x-ms-headers": {
          "$ref": "#/definitions/schema"
        },
        "headers": {
          "$ref": "#/definitions/headers"
        },
        "x-ms-error-response": {
          "$ref": "#/definitions/xmsErrorResponse"
        },
        "examples": {
          "$ref": "#/definitions/examples"
        }
      },
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/header"
      }
    },
    "header": {
      "type": "object",
      "additionalProperties": false,
      "required": ["type"],
      "properties": {
        "type": {
          "type": "string",
          "enum": ["string", "number", "integer", "boolean", "array"]
        },
        "format": {
          "type": "string"
        },
        "items": {
          "$ref": "#/definitions/primitivesItems"
        },
        "collectionFormat": {
          "$ref": "#/definitions/collectionFormat"
        },
        "default": {
          "$ref": "#/definitions/default"
        },
        "maximum": {
          "$ref": "#/definitions/maximum"
        },
        "exclusiveMaximum": {
          "$ref": "#/definitions/exclusiveMaximum"
        },
        "minimum": {
          "$ref": "#/definitions/minimum"
        },
        "exclusiveMinimum": {
          "$ref": "#/definitions/exclusiveMinimum"
        },
        "maxLength": {
          "$ref": "#/definitions/maxLength"
        },
        "minLength": {
          "$ref": "#/definitions/minLength"
        },
        "pattern": {
          "$ref": "#/definitions/pattern"
        },
        "maxItems": {
          "$ref": "#/definitions/maxItems"
        },
        "minItems": {
          "$ref": "#/definitions/minItems"
        },
        "uniqueItems": {
          "$ref": "#/definitions/uniqueItems"
        },
        "enum": {
          "$ref": "#/definitions/enum"
        },
        "x-ms-enum": {
          "$ref": "#/definitions/xmsEnum"
        },
        "x-nullable": {
          "$ref": "#/definitions/xNullable"
        },
        "x-ms-secret": {
          "$ref": "#/definitions/xmsSecret"
        },
        "x-ms-header-collection-prefix": {
          "type": "string",
          "description": "Provides the ability to specify a key value mapping, using given prefix as the prefix of all keys."
        },
        "x-ms-client-name": {
          "type": "string",
          "description": "A code-generator-friendly name for the header."
        },
        "multipleOf": {
          "$ref": "#/definitions/multipleOf"
        },
        "description": {
          "type": "string"
        }
      },
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "vendorExtension": {
      "description": "Any property starting with x- is valid.",
      "additionalProperties": true,
      "additionalItems": true
    },
    "bodyParameter": {
      "type": "object",
      "required": ["name", "in", "schema"],
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "description": {
          "type": "string",
          "description": "A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
        },
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "in": {
          "type": "string",
          "description": "Determines the location of the parameter.",
          "enum": ["body"]
        },
        "required": {
          "type": "boolean",
          "description": "Determines whether or not this parameter is required or optional.",
          "default": false
        },
        "x-ms-parameter-grouping": {
          "$ref": "#/definitions/xmsParameterGrouping"
        },
        "x-ms-parameter-location": {
          "$ref": "#/definitions/xmsParameterLocation"
        },
        "x-ms-api-version": {
          "$ref": "#/definitions/xmsApiVersion"
        },
        "x-ms-client-default": {
          "$ref": "#/definitions/xmsClientDefault"
        },
        "x-ms-header-collection-prefix": {
          "type": "string",
          "description": "Provides the ability to specify a key value mapping, using given prefix as the prefix of all keys."
        },
        "x-ms-client-name": {
          "type": "string",
          "description": "A code-generator-friendly name for the parameter."
        },
        "schema": {
          "$ref": "#/definitions/schema"
        },
        "x-ms-client-flatten": {
          "$ref": "#/definitions/xmsClientFlatten"
        }
      },
      "additionalProperties": false
    },
    "headerParameterSubSchema": {
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "required": {
          "type": "boolean",
          "description": "Determines whether or not this parameter is required or optional.",
          "default": false
        },
        "in": {
          "type": "string",
          "description": "Determines the location of the parameter.",
          "enum": ["header"]
        },
        "description": {
          "type": "string",
          "description": "A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
        },
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "type": {
          "type": "string",
          "enum": ["string", "number", "boolean", "integer", "array"]
        },
        "format": {
          "type": "string"
        },
        "items": {
          "$ref": "#/definitions/primitivesItems"
        },
        "collectionFormat": {
          "$ref": "#/definitions/collectionFormat"
        },
        "default": {
          "$ref": "#/definitions/default"
        },
        "maximum": {
          "$ref": "#/definitions/maximum"
        },
        "exclusiveMaximum": {
          "$ref": "#/definitions/exclusiveMaximum"
        },
        "minimum": {
          "$ref": "#/definitions/minimum"
        },
        "exclusiveMinimum": {
          "$ref": "#/definitions/exclusiveMinimum"
        },
        "maxLength": {
          "$ref": "#/definitions/maxLength"
        },
        "minLength": {
          "$ref": "#/definitions/minLength"
        },
        "pattern": {
          "$ref": "#/definitions/pattern"
        },
        "maxItems": {
          "$ref": "#/definitions/maxItems"
        },
        "minItems": {
          "$ref": "#/definitions/minItems"
        },
        "uniqueItems": {
          "$ref": "#/definitions/uniqueItems"
        },
        "enum": {
          "$ref": "#/definitions/enum"
        },
        "x-ms-enum": {
          "$ref": "#/definitions/xmsEnum"
        },
        "x-nullable": {
          "$ref": "#/definitions/xNullable"
        },
        "x-ms-secret": {
          "$ref": "#/definitions/xmsSecret"
        },
        "x-ms-parameter-grouping": {
          "$ref": "#/definitions/xmsParameterGrouping"
        },
        "x-ms-parameter-location": {
          "$ref": "#/definitions/xmsParameterLocation"
        },
        "x-ms-api-version": {
          "$ref": "#/definitions/xmsApiVersion"
        },
        "x-ms-client-default": {
          "$ref": "#/definitions/xmsClientDefault"
        },
        "x-ms-client-name": {
          "type": "string",
          "description": "A code-generator-friendly name for the parameter."
        },
        "x-ms-header-collection-prefix": {
          "type": "string",
          "description": "Provides the ability to specify a key value mapping, using given prefix as the prefix of all keys."
        },
        "x-ms-client-request-id": {
          "$ref": "#/definitions/xmsClientRequestId"
        },
        "multipleOf": {
          "$ref": "#/definitions/multipleOf"
        }
      }
    },
    "queryParameterSubSchema": {
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "required": {
          "type": "boolean",
          "description": "Determines whether or not this parameter is required or optional.",
          "default": false
        },
        "in": {
          "type": "string",
          "description": "Determines the location of the parameter.",
          "enum": ["query"]
        },
        "description": {
          "type": "string",
          "description": "A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
        },
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "allowEmptyValue": {
          "type": "boolean",
          "default": false,
          "description": "allows sending a parameter by name only or with an empty value."
        },
        "type": {
          "type": "string",
          "enum": ["string", "number", "boolean", "integer", "array"]
        },
        "format": {
          "type": "string"
        },
        "items": {
          "$ref": "#/definitions/primitivesItems"
        },
        "collectionFormat": {
          "$ref": "#/definitions/collectionFormatWithMulti"
        },
        "default": {
          "$ref": "#/definitions/default"
        },
        "maximum": {
          "$ref": "#/definitions/maximum"
        },
        "exclusiveMaximum": {
          "$ref": "#/definitions/exclusiveMaximum"
        },
        "minimum": {
          "$ref": "#/definitions/minimum"
        },
        "exclusiveMinimum": {
          "$ref": "#/definitions/exclusiveMinimum"
        },
        "maxLength": {
          "$ref": "#/definitions/maxLength"
        },
        "minLength": {
          "$ref": "#/definitions/minLength"
        },
        "pattern": {
          "$ref": "#/definitions/pattern"
        },
        "maxItems": {
          "$ref": "#/definitions/maxItems"
        },
        "minItems": {
          "$ref": "#/definitions/minItems"
        },
        "uniqueItems": {
          "$ref": "#/definitions/uniqueItems"
        },
        "enum": {
          "$ref": "#/definitions/enum"
        },
        "x-ms-parameter-grouping": {
          "$ref": "#/definitions/xmsParameterGrouping"
        },
        "x-ms-parameter-location": {
          "$ref": "#/definitions/xmsParameterLocation"
        },
        "x-ms-api-version": {
          "$ref": "#/definitions/xmsApiVersion"
        },
        "x-ms-client-default": {
          "$ref": "#/definitions/xmsClientDefault"
        },
        "x-ms-client-name": {
          "type": "string",
          "description": "A code-generator-friendly name for the parameter."
        },
        "x-ms-enum": {
          "$ref": "#/definitions/xmsEnum"
        },
        "x-nullable": {
          "$ref": "#/definitions/xNullable"
        },
        "x-ms-secret": {
          "$ref": "#/definitions/xmsSecret"
        },
        "x-ms-skip-url-encoding": {
          "$ref": "#/definitions/xmsSkipUrlEncoding"
        },
        "multipleOf": {
          "$ref": "#/definitions/multipleOf"
        }
      }
    },
    "formDataParameterSubSchema": {
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "required": {
          "type": "boolean",
          "description": "Determines whether or not this parameter is required or optional.",
          "default": false
        },
        "in": {
          "type": "string",
          "description": "Determines the location of the parameter.",
          "enum": ["formData"]
        },
        "description": {
          "type": "string",
          "description": "A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
        },
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "allowEmptyValue": {
          "type": "boolean",
          "default": false,
          "description": "allows sending a parameter by name only or with an empty value."
        },
        "type": {
          "type": "string",
          "enum": ["string", "number", "boolean", "integer", "array", "file"]
        },
        "format": {
          "type": "string"
        },
        "items": {
          "$ref": "#/definitions/primitivesItemsWithFile"
        },
        "collectionFormat": {
          "$ref": "#/definitions/collectionFormatWithMulti"
        },
        "default": {
          "$ref": "#/definitions/default"
        },
        "maximum": {
          "$ref": "#/definitions/maximum"
        },
        "exclusiveMaximum": {
          "$ref": "#/definitions/exclusiveMaximum"
        },
        "minimum": {
          "$ref": "#/definitions/minimum"
        },
        "exclusiveMinimum": {
          "$ref": "#/definitions/exclusiveMinimum"
        },
        "maxLength": {
          "$ref": "#/definitions/maxLength"
        },
        "minLength": {
          "$ref": "#/definitions/minLength"
        },
        "pattern": {
          "$ref": "#/definitions/pattern"
        },
        "maxItems": {
          "$ref": "#/definitions/maxItems"
        },
        "minItems": {
          "$ref": "#/definitions/minItems"
        },
        "uniqueItems": {
          "$ref": "#/definitions/uniqueItems"
        },
        "enum": {
          "$ref": "#/definitions/enum"
        },
        "x-ms-parameter-grouping": {
          "$ref": "#/definitions/xmsParameterGrouping"
        },
        "x-ms-parameter-location": {
          "$ref": "#/definitions/xmsParameterLocation"
        },
        "x-ms-api-version": {
          "$ref": "#/definitions/xmsApiVersion"
        },
        "x-ms-client-default": {
          "$ref": "#/definitions/xmsClientDefault"
        },
        "x-ms-client-name": {
          "type": "string",
          "description": "A code-generator-friendly name for the parameter."
        },
        "x-ms-enum": {
          "$ref": "#/definitions/xmsEnum"
        },
        "x-nullable": {
          "$ref": "#/definitions/xNullable"
        },
        "x-ms-secret": {
          "$ref": "#/definitions/xmsSecret"
        },
        "multipleOf": {
          "$ref": "#/definitions/multipleOf"
        }
      }
    },
    "pathParameterSubSchema": {
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "required": ["required"],
      "properties": {
        "required": {
          "type": "boolean",
          "enum": [true],
          "description": "Determines whether or not this parameter is required or optional."
        },
        "in": {
          "type": "string",
          "description": "Determines the location of the parameter.",
          "enum": ["path"]
        },
        "description": {
          "type": "string",
          "description": "A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
        },
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "type": {
          "type": "string",
          "enum": ["string", "number", "boolean", "integer", "array"]
        },
        "format": {
          "type": "string"
        },
        "items": {
          "$ref": "#/definitions/primitivesItems"
        },
        "collectionFormat": {
          "$ref": "#/definitions/collectionFormat"
        },
        "default": {
          "$ref": "#/definitions/default"
        },
        "maximum": {
          "$ref": "#/definitions/maximum"
        },
        "exclusiveMaximum": {
          "$ref": "#/definitions/exclusiveMaximum"
        },
        "minimum": {
          "$ref": "#/definitions/minimum"
        },
        "exclusiveMinimum": {
          "$ref": "#/definitions/exclusiveMinimum"
        },
        "maxLength": {
          "$ref": "#/definitions/maxLength"
        },
        "minLength": {
          "$ref": "#/definitions/minLength"
        },
        "pattern": {
          "$ref": "#/definitions/pattern"
        },
        "maxItems": {
          "$ref": "#/definitions/maxItems"
        },
        "minItems": {
          "$ref": "#/definitions/minItems"
        },
        "uniqueItems": {
          "$ref": "#/definitions/uniqueItems"
        },
        "enum": {
          "$ref": "#/definitions/enum"
        },
        "x-ms-parameter-grouping": {
          "$ref": "#/definitions/xmsParameterGrouping"
        },
        "x-ms-parameter-location": {
          "$ref": "#/definitions/xmsParameterLocation"
        },
        "x-ms-api-version": {
          "$ref": "#/definitions/xmsApiVersion"
        },
        "x-ms-client-default": {
          "$ref": "#/definitions/xmsClientDefault"
        },
        "x-ms-client-name": {
          "type": "string",
          "description": "A code-generator-friendly name for the parameter."
        },
        "x-ms-enum": {
          "$ref": "#/definitions/xmsEnum"
        },
        "x-nullable": {
          "$ref": "#/definitions/xNullable"
        },
        "x-ms-secret": {
          "$ref": "#/definitions/xmsSecret"
        },
        "multipleOf": {
          "$ref": "#/definitions/multipleOf"
        },
        "x-ms-skip-url-encoding": {
          "$ref": "#/definitions/xmsSkipUrlEncoding"
        }
      }
    },
    "nonBodyParameter": {
      "type": "object",
      "required": ["name", "in", "type"],
      "oneOf": [
        {
          "$ref": "#/definitions/headerParameterSubSchema"
        },
        {
          "$ref": "#/definitions/formDataParameterSubSchema"
        },
        {
          "$ref": "#/definitions/queryParameterSubSchema"
        },
        {
          "$ref": "#/definitions/pathParameterSubSchema"
        }
      ]
    },
    "parameter": {
      "oneOf": [
        {
          "$ref": "#/definitions/bodyParameter"
        },
        {
          "$ref": "#/definitions/nonBodyParameter"
        }
      ],
      "properties": {
        "x-ms-client-flatten": {
          "$ref": "#/definitions/xmsClientFlatten"
        }
      }
    },
    "schema": {
      "type": "object",
      "description": "A deterministic version of a JSON Schema object.",
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "$ref": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "title": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/title"
        },
        "description": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/description"
        },
        "default": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/default"
        },
        "multipleOf": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"
        },
        "maximum": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
        },
        "exclusiveMaximum": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
        },
        "minimum": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
        },
        "exclusiveMinimum": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
        },
        "maxLength": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
        },
        "minLength": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
        },
        "pattern": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
        },
        "maxItems": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
        },
        "minItems": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
        },
        "uniqueItems": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"
        },
        "maxProperties": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
        },
        "minProperties": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
        },
        "required": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"
        },
        "enum": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
        },
        "x-ms-enum": {
          "$ref": "#/definitions/xmsEnum"
        },
        "x-nullable": {
          "$ref": "#/definitions/xNullable"
        },
        "x-ms-secret": {
          "$ref": "#/definitions/xmsSecret"
        },
        "additionalProperties": {
          "anyOf": [
            {
              "$ref": "#/definitions/schema"
            },
            {
              "type": "boolean"
            }
          ],
          "default": {}
        },
        "type": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/type"
        },
        "items": {
          "anyOf": [
            {
              "$ref": "#/definitions/schema"
            },
            {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/definitions/schema"
              }
            }
          ],
          "default": {}
        },
        "allOf": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/definitions/schema"
          }
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/schema"
          },
          "default": {}
        },
        "discriminator": {
          "type": "string"
        },
        "readOnly": {
          "type": "boolean",
          "default": false
        },
        "x-ms-discriminator-value": {
          "$ref": "#/definitions/xmsDiscriminatorValue"
        },
        "x-ms-azure-resource": {
          "$ref": "#/definitions/xmsAzureResource"
        },
        "x-ms-external": {
          "$ref": "#/definitions/xmsExternal"
        },
        "xml": {
          "$ref": "#/definitions/xml"
        },
        "externalDocs": {
          "$ref": "#/definitions/externalDocs"
        },
        "example": {},
        "x-ms-client-flatten": {
          "$ref": "#/definitions/xmsClientFlatten"
        },
        "x-ms-client-default": {
          "$ref": "#/definitions/xmsClientDefault"
        },
        "x-ms-client-name": {
          "type": "string"
        },
        "x-ms-mutability": {
          "$ref": "#/definitions/xmsMutability"
        }
      },
      "additionalProperties": false
    },
    "fileSchema": {
      "type": "object",
      "description": "A deterministic version of a JSON Schema object.",
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "required": ["type"],
      "properties": {
        "format": {
          "type": "string"
        },
        "title": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/title"
        },
        "description": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/description"
        },
        "default": {
          "$ref": "http://json-schema.org/draft-04/schema#/properties/default"
        },
        "required": {
          "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"
        },
        "type": {
          "type": "string",
          "enum": ["file"]
        },
        "readOnly": {
          "type": "boolean",
          "default": false
        },
        "externalDocs": {
          "$ref": "#/definitions/externalDocs"
        },
        "example": {}
      },
      "additionalProperties": false
    },
    "primitivesItemsBase": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "items": {
          "$ref": "#/definitions/primitivesItems"
        },
        "collectionFormat": {
          "$ref": "#/definitions/collectionFormat"
        },
        "default": {
          "$ref": "#/definitions/default"
        },
        "maximum": {
          "$ref": "#/definitions/maximum"
        },
        "exclusiveMaximum": {
          "$ref": "#/definitions/exclusiveMaximum"
        },
        "minimum": {
          "$ref": "#/definitions/minimum"
        },
        "exclusiveMinimum": {
          "$ref": "#/definitions/exclusiveMinimum"
        },
        "maxLength": {
          "$ref": "#/definitions/maxLength"
        },
        "minLength": {
          "$ref": "#/definitions/minLength"
        },
        "pattern": {
          "$ref": "#/definitions/pattern"
        },
        "maxItems": {
          "$ref": "#/definitions/maxItems"
        },
        "minItems": {
          "$ref": "#/definitions/minItems"
        },
        "uniqueItems": {
          "$ref": "#/definitions/uniqueItems"
        },
        "enum": {
          "$ref": "#/definitions/enum"
        },
        "x-ms-enum": {
          "$ref": "#/definitions/xmsEnum"
        },
        "x-nullable": {
          "$ref": "#/definitions/xNullable"
        },
        "x-ms-secret": {
          "$ref": "#/definitions/xmsSecret"
        },
        "multipleOf": {
          "$ref": "#/definitions/multipleOf"
        }
      },
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "primitivesItems": {
      "allOf": [
        {
          "$ref": "#/definitions/primitivesItemsBase"
        }
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": ["string", "number", "integer", "boolean", "array"]
        }
      }
    },
    "primitivesItemsWithFile": {
      "allOf": [
        {
          "$ref": "#/definitions/primitivesItemsBase"
        }
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": ["string", "number", "integer", "boolean", "array", "file"]
        }
      }
    },
    "xml": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "prefix": {
          "type": "string"
        },
        "attribute": {
          "type": "boolean",
          "default": false
        },
        "wrapped": {
          "type": "boolean",
          "default": false
        }
      },
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "tag": {
      "type": "object",
      "additionalProperties": false,
      "required": ["name"],
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "externalDocs": {
          "$ref": "#/definitions/externalDocs"
        }
      },
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      }
    },
    "mediaTypeList": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/mimeType"
      },
      "uniqueItems": true
    },
    "parametersList": {
      "type": "array",
      "description": "The parameters needed to send a valid API call.",
      "additionalItems": false,
      "items": {
        "oneOf": [
          {
            "$ref": "#/definitions/parameter"
          },
          {
            "$ref": "#/definitions/jsonReference"
          }
        ]
      },
      "uniqueItems": true
    },
    "schemesList": {
      "type": "array",
      "description": "The transfer protocol of the API.",
      "items": {
        "type": "string",
        "enum": ["http", "https", "ws", "wss"]
      },
      "uniqueItems": true
    },
    "collectionFormat": {
      "type": "string",
      "enum": ["csv", "ssv", "tsv", "pipes"],
      "default": "csv"
    },
    "collectionFormatWithMulti": {
      "type": "string",
      "enum": ["csv", "ssv", "tsv", "pipes", "multi"],
      "default": "csv"
    },
    "title": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/title"
    },
    "description": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/description"
    },
    "default": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/default"
    },
    "multipleOf": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"
    },
    "maximum": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
    },
    "exclusiveMaximum": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
    },
    "minimum": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
    },
    "exclusiveMinimum": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
    },
    "maxLength": {
      "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
    },
    "minLength": {
      "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
    },
    "pattern": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
    },
    "maxItems": {
      "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
    },
    "minItems": {
      "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
    },
    "uniqueItems": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"
    },
    "enum": {
      "$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
    },
    "jsonReference": {
      "type": "object",
      "required": ["$ref"],
      "additionalProperties": false,
      "properties": {
        "$ref": {
          "type": "string"
        }
      }
    },
    "xmsSkipUrlEncoding": {
      "type": "boolean"
    },
    "xNullable": {
      "description": "Indicates whether the entity on which this extension is applied is nullable or not. `true` value indicates that it is nullable.",
      "type": "boolean"
    },
    "xmsSecret": {
      "description": "Indicates whether the entity on which this extension is applied is to be considered a secret (ie, password, certificate, etc) or not. `true` value indicates that it is a secret.",
      "type": "boolean"
    },
    "xmsEnum": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "modelAsString": {
          "type": "boolean",
          "default": false
        },
        "oldModelAsString": {
          "type": "boolean",
          "default": false
        },
        "modelAsExtensible": {
          "type": "boolean",
          "default": false
        },
        "values": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["value"],
            "properties": {
              "value": {},
              "description": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "allowedValues": {
                "type": "array",
                "items": {}
              }
            },
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "xmsParameterGrouping": {
      "oneOf": [
        {
          "type": "object",
          "required": ["name"],
          "properties": {
            "name": {
              "type": ["string", "null"]
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "postfix": {
              "type": ["string", "null"]
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "xmsPaths": {
      "type": "object",
      "description": "Relative paths to the individual endpoints. They must be relative to the 'basePath'.",
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "additionalProperties": {
        "$ref": "#/definitions/pathItem"
      }
    },
    "xmsExternal": {
      "type": "boolean"
    },
    "xmsDiscriminatorValue": {
      "type": "string"
    },
    "xmsOData": {
      "type": "string"
    },
    "xmsErrorResponse": {
      "description": "Indicates whether the response is an error response.",
      "type": "boolean",
      "default": false
    },
    "xmsPageable": {
      "type": "object",
      "properties": {
        "nextLinkName": {
          "type": ["string", "null"]
        },
        "itemName": {
          "type": ["string", "null"]
        },
        "operationName": {
          "type": ["string", "null"]
        }
      },
      "additionalProperties": false
    },
    "xmsPermissions": {
      "type": "object",
      "properties": {
        "actions": {
          "type": "string"
        },
        "dataActions": {
          "type": "string"
        },
        "rolesWithThesePermissions": {
          "type": "string"
        },
        "moreInfoLink": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "xmsLongRunningOperation": {
      "description": "Indicates whether the operation is long running (asynchronous). `true` value indicates that it is a long running operation.",
      "type": "boolean"
    },
    "xmsLongRunningOperationOptions": {
      "description": "Indicates whether the operation is long running (asynchronous). `true` value indicates that it is a long running operation.",
      "type": "object",
      "properties": {
        "final-state-via": {
          "description": "How to determine the final state of the operation. Possible Values:\n- `azure-async-operation` - poll until terminal state, the final response will be available at the uri pointed to by the header `Azure-AsyncOperation`\n- `location`  - poll until terminal state, the final response will be available at the uri pointed to by the header `Location`\n- `original-uri` - poll until terminal state, the final response will be available via GET at the original resource URI. Very common for PUT operations\n- `operation-location` - poll until terminal state, the final response will be available at the uri pointed to by the header `Operation-Location`",
          "type": "string",
          "enum": ["azure-async-operation", "location", "original-uri", "operation-location"]
        }
      },
      "required": ["final-state-via"]
    },
    "xmsAzureResource": {
      "description": "Indicates whether a model definition is an Azure Resource. `true` value indicates that it is an Azure Resource.",
      "type": "boolean"
    },
    "xmsRequestId": {
      "type": "string"
    },
    "xmsClientRequestId": {
      "type": "boolean"
    },
    "xmsCodeGenerationSettings": {
      "additionalProperties": true
    },
    "xmsHostParametersList": {
      "type": "array",
      "description": "The parameters used in conjunction with x-ms-parameterized-host.",
      "additionalItems": false,
      "items": {
        "oneOf": [
          {
            "$ref": "#/definitions/nonBodyParameter"
          },
          {
            "$ref": "#/definitions/jsonReference"
          }
        ]
      },
      "uniqueItems": true
    },
    "xmsParameterizedHost": {
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "^x-.*$": {
          "$ref": "#/definitions/vendorExtension"
        }
      },
      "properties": {
        "hostTemplate": {
          "type": "string"
        },
        "useSchemePrefix": {
          "type": "boolean",
          "default": true
        },
        "positionInOperation": {
          "type": "string",
          "default": "first",
          "pattern": "^(fir|la)st$"
        },
        "parameters": {
          "$ref": "#/definitions/xmsHostParametersList"
        }
      }
    },
    "xmsClientFlatten": {
      "type": "boolean"
    },
    "xmsParameterLocation": {
      "type": "string",
      "enum": ["client", "method"]
    },
    "xmsApiVersion": {
      "type": "boolean"
    },
    "xmsClientDefault": {
      "type": ["string", "boolean", "number"]
    },
    "xmsMutability": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["create", "read", "update"]
      },
      "uniqueItems": true
    },
    "xmsExamples": {
      "type": "object",
      "description": "Describes the 'x-ms-examples' extension.",
      "additionalProperties": {
        "oneOf": [
          {
            "$ref": "https://raw.githubusercontent.com/Azure/autorest/master/schema/example-schema.json#"
          },
          {
            "$ref": "#/definitions/jsonReference"
          }
        ]
      }
    }
  }
}
