@autorest/schemas
Advanced tools
Comparing version 1.1.5-dev.1 to 1.2.0-dev.2
@@ -7,5 +7,5 @@ { | ||
"packages/libs/autorest-schemas/example-schema.json": "5ddc0d26919c5176c98ad987b1de489e92a4d224", | ||
"packages/libs/autorest-schemas/openapi3-schema.json": "35689648c86a8efb536bde330d1fe17731f44765", | ||
"packages/libs/autorest-schemas/openapi3-schema.json": "d32746f4d02890378a65df89c7fd1a9de9f0ba1f", | ||
"packages/libs/autorest-schemas/package.json": "dbf4275e72254d4db862c213fbdcfd2d49251961", | ||
"packages/libs/autorest-schemas/swagger-extensions.json": "23e06ba18cbb5bd8f55b8745178319e1873c8780", | ||
"packages/libs/autorest-schemas/swagger-extensions.json": "f491573811ed0285db5891dc16f78a4656c80a64", | ||
"packages/libs/autorest-schemas/swagger.json": "7bb174a4c22f9e858f5b6228bdbf358d737a638f", | ||
@@ -12,0 +12,0 @@ "packages/libs/autorest-schemas/.rush/temp/shrinkwrap-deps.json": "0967ef424bce6791893e9a57bb952f80fd536e93" |
@@ -397,3 +397,3 @@ { | ||
"type": "boolean", | ||
"errorMessage": "should be a Reference Object, Schema Object, or boolean value" | ||
"errorMessage": "must be a Reference Object, Schema Object, or boolean value" | ||
} | ||
@@ -754,3 +754,3 @@ } | ||
"not": true, | ||
"errorMessage": "should only have path names that start with `/` but found ${0#}" | ||
"errorMessage": "must only have path names that start with `/` but found ${0#}" | ||
} | ||
@@ -953,41 +953,70 @@ }, | ||
}, | ||
"Parameter": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchema" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithContent" | ||
} | ||
] | ||
"ExampleXORExamples": { | ||
"description": "Example and examples are mutually exclusive", | ||
"errorMessage": "must not have both `example` and `examples`, as they are mutually exclusive", | ||
"not": { | ||
"required": ["example", "examples"] | ||
} | ||
}, | ||
"ParameterWithSchema": { | ||
"oneOf": [ | ||
"SchemaXORContent": { | ||
"description": "Schema and content are mutually exclusive, at least one is required", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExample" | ||
"if": { | ||
"required": ["schema", "content"] | ||
}, | ||
"then": false | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExamples" | ||
} | ||
] | ||
}, | ||
"ParameterWithSchemaWithExample": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExampleInPath" | ||
"if": { | ||
"required": ["schema"] | ||
}, | ||
"then": true | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExampleInQuery" | ||
"if": { | ||
"required": ["content"] | ||
}, | ||
"then": { | ||
"description": "Some properties are not allowed if content is present", | ||
"errorMessage": "must not have `style`, `explode`, `allowReserved`, `example`, or `examples` when `content` is present", | ||
"allOf": [ | ||
{ | ||
"not": { | ||
"required": ["style"] | ||
} | ||
}, | ||
{ | ||
"not": { | ||
"required": ["explode"] | ||
} | ||
}, | ||
{ | ||
"not": { | ||
"required": ["allowReserved"] | ||
} | ||
}, | ||
{ | ||
"not": { | ||
"required": ["example"] | ||
} | ||
}, | ||
{ | ||
"not": { | ||
"required": ["examples"] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExampleInHeader" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExampleInCookie" | ||
"then": { | ||
"required": ["schema", "content"] | ||
} | ||
} | ||
] | ||
], | ||
"errorMessage": "must have either a `schema` or `content` property" | ||
}, | ||
"ParameterWithSchemaWithExampleInPath": { | ||
"Parameter": { | ||
"type": "object", | ||
"required": ["name", "in", "schema", "required"], | ||
"properties": { | ||
@@ -998,55 +1027,4 @@ "name": { | ||
"in": { | ||
"type": "string", | ||
"enum": ["path"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"enum": [true] | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"style": { | ||
"type": "string", | ||
"enum": ["matrix", "label", "simple"], | ||
"default": "simple" | ||
}, | ||
"explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"example": {} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithSchemaWithExampleInQuery": { | ||
"type": "object", | ||
"required": ["name", "in", "schema"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["query"] | ||
}, | ||
"description": { | ||
@@ -1068,56 +1046,4 @@ "type": "string" | ||
"style": { | ||
"type": "string", | ||
"enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject"], | ||
"default": "form" | ||
}, | ||
"explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"example": {} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithSchemaWithExampleInHeader": { | ||
"type": "object", | ||
"required": ["name", "in", "schema"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["header"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"style": { | ||
"type": "string", | ||
"enum": ["simple"], | ||
"default": "simple" | ||
}, | ||
"explode": { | ||
@@ -1131,242 +1057,33 @@ "type": "boolean" | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"example": {} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithSchemaWithExampleInCookie": { | ||
"type": "object", | ||
"required": ["name", "in", "schema"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["cookie"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"style": { | ||
"type": "string", | ||
"enum": ["form"], | ||
"default": "form" | ||
}, | ||
"explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"example": {} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithSchemaWithExamples": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExamplesInPath" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExamplesInQuery" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExamplesInHeader" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithSchemaWithExamplesInCookie" | ||
} | ||
] | ||
}, | ||
"ParameterWithSchemaWithExamplesInPath": { | ||
"type": "object", | ||
"required": ["name", "in", "schema", "required", "examples"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["path"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"enum": [true] | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"style": { | ||
"type": "string", | ||
"enum": ["matrix", "label", "simple"], | ||
"default": "simple" | ||
}, | ||
"explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"examples": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Example" } | ||
"if": { | ||
"required": ["$ref"] | ||
}, | ||
"then": { | ||
"$ref": "#/definitions/Reference" | ||
}, | ||
"else": { | ||
"$ref": "#/definitions/Schema" | ||
} | ||
} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithSchemaWithExamplesInQuery": { | ||
"type": "object", | ||
"required": ["name", "in", "schema", "examples"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["query"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"style": { | ||
"type": "string", | ||
"enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject"], | ||
"default": "form" | ||
}, | ||
"explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"examples": { | ||
"content": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Example" } | ||
} | ||
} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithSchemaWithExamplesInHeader": { | ||
"type": "object", | ||
"required": ["name", "in", "schema", "examples"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
"$ref": "#/definitions/MediaType" | ||
}, | ||
"minProperties": 1, | ||
"maxProperties": 1 | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["header"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"style": { | ||
"type": "string", | ||
"enum": ["simple"], | ||
"default": "simple" | ||
}, | ||
"explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"example": {}, | ||
"examples": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Example" } | ||
"if": { | ||
"required": ["$ref"] | ||
}, | ||
"then": { | ||
"$ref": "#/definitions/Reference" | ||
}, | ||
"else": { | ||
"$ref": "#/definitions/Example" | ||
} | ||
} | ||
@@ -1378,150 +1095,110 @@ } | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithSchemaWithExamplesInCookie": { | ||
"type": "object", | ||
"required": ["name", "in", "schema", "examples"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
"additionalProperties": false, | ||
"required": ["name", "in"], | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/ExampleXORExamples" | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["cookie"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"style": { | ||
"type": "string", | ||
"enum": ["form"], | ||
"default": "form" | ||
}, | ||
"explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"schema": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Schema" } | ||
}, | ||
"examples": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"if": { "required": ["$ref"] }, | ||
"then": { "$ref": "#/definitions/Reference" }, | ||
"else": { "$ref": "#/definitions/Example" } | ||
} | ||
} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithContent": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ParameterWithContentInPath" | ||
"$ref": "#/definitions/SchemaXORContent" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ParameterWithContentNotInPath" | ||
"$ref": "#/definitions/ParameterLocation" | ||
} | ||
] | ||
}, | ||
"ParameterWithContentInPath": { | ||
"type": "object", | ||
"required": ["name", "in", "content"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
"ParameterLocation": { | ||
"description": "Parameter location", | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"required": ["in"], | ||
"properties": { | ||
"in": { | ||
"enum": ["path"] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"description": "Parameter in path", | ||
"required": ["required"], | ||
"properties": { | ||
"style": { | ||
"enum": ["matrix", "label", "simple"], | ||
"default": "simple" | ||
}, | ||
"required": { | ||
"enum": [true] | ||
} | ||
} | ||
} | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["path"] | ||
{ | ||
"if": { | ||
"required": ["in"], | ||
"properties": { | ||
"in": { | ||
"enum": ["query"] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"description": "Parameter in query", | ||
"properties": { | ||
"style": { | ||
"enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject"], | ||
"default": "form" | ||
} | ||
} | ||
} | ||
}, | ||
"description": { | ||
"type": "string" | ||
{ | ||
"if": { | ||
"required": ["in"], | ||
"properties": { | ||
"in": { | ||
"enum": ["header"] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"description": "Parameter in header", | ||
"properties": { | ||
"style": { | ||
"enum": ["simple"], | ||
"default": "simple" | ||
} | ||
} | ||
} | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"enum": [true] | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"content": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/MediaType" | ||
{ | ||
"if": { | ||
"required": ["in"], | ||
"properties": { | ||
"in": { | ||
"enum": ["cookie"] | ||
} | ||
} | ||
}, | ||
"minProperties": 1, | ||
"maxProperties": 1 | ||
} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ParameterWithContentNotInPath": { | ||
"type": "object", | ||
"required": ["name", "in", "content"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
"then": { | ||
"description": "Parameter in cookie", | ||
"properties": { | ||
"style": { | ||
"enum": ["form"], | ||
"default": "form" | ||
} | ||
} | ||
} | ||
}, | ||
"in": { | ||
"type": "string", | ||
"enum": ["query", "header", "cookie"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"deprecated": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"allowEmptyValue": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"content": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/MediaType" | ||
}, | ||
"minProperties": 1, | ||
"maxProperties": 1 | ||
{ | ||
"then": { | ||
"required": ["in"], | ||
"properties": { | ||
"in": { | ||
"enum": ["path", "query", "header", "cookie"] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"patternProperties": { | ||
"^x-": {} | ||
}, | ||
"additionalProperties": false | ||
] | ||
}, | ||
@@ -1528,0 +1205,0 @@ "RequestBody": { |
{ | ||
"name": "@autorest/schemas", | ||
"version": "1.1.5-dev.1", | ||
"version": "1.2.0-dev.2", | ||
"description": "Internal package storing schemas", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -185,3 +185,3 @@ { | ||
"not": true, | ||
"errorMessage": "should only have path names that start with `/` but found ${0#}" | ||
"errorMessage": "must only have path names that start with `/` but found ${0#}" | ||
} | ||
@@ -188,0 +188,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139043
5157