|
123 | 123 | { |
124 | 124 | "$ref": "#/definitions/service_products_childResource" |
125 | 125 | }, |
| 126 | + { |
| 127 | + "$ref": "#/definitions/service_schemas_childResource" |
| 128 | + }, |
126 | 129 | { |
127 | 130 | "$ref": "#/definitions/service_subscriptions_childResource" |
128 | 131 | }, |
|
717 | 720 | ] |
718 | 721 | }, |
719 | 722 | "name": { |
720 | | - "oneOf": [ |
721 | | - { |
722 | | - "type": "string", |
723 | | - "pattern": "^[^*#&+:<>?]+$", |
724 | | - "minLength": 1, |
725 | | - "maxLength": 80 |
726 | | - }, |
727 | | - { |
728 | | - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
729 | | - } |
730 | | - ], |
731 | | - "description": "Schema identifier within an API. Must be unique in the current API Management service instance." |
| 723 | + "type": "string", |
| 724 | + "minLength": 1, |
| 725 | + "maxLength": 80, |
| 726 | + "description": "Schema id identifier. Must be unique in the current API Management service instance." |
732 | 727 | }, |
733 | 728 | "properties": { |
734 | 729 | "oneOf": [ |
735 | 730 | { |
736 | | - "$ref": "#/definitions/SchemaContractProperties" |
| 731 | + "$ref": "#/definitions/ApiSchemaContractProperties" |
737 | 732 | }, |
738 | 733 | { |
739 | 734 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
|
2226 | 2221 | ], |
2227 | 2222 | "description": "Microsoft.ApiManagement/service/products/tags" |
2228 | 2223 | }, |
| 2224 | + "service_schemas": { |
| 2225 | + "type": "object", |
| 2226 | + "properties": { |
| 2227 | + "apiVersion": { |
| 2228 | + "type": "string", |
| 2229 | + "enum": [ |
| 2230 | + "2021-04-01-preview" |
| 2231 | + ] |
| 2232 | + }, |
| 2233 | + "name": { |
| 2234 | + "type": "string", |
| 2235 | + "minLength": 1, |
| 2236 | + "maxLength": 80, |
| 2237 | + "description": "Schema id identifier. Must be unique in the current API Management service instance." |
| 2238 | + }, |
| 2239 | + "properties": { |
| 2240 | + "oneOf": [ |
| 2241 | + { |
| 2242 | + "$ref": "#/definitions/SchemaContractProperties" |
| 2243 | + }, |
| 2244 | + { |
| 2245 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 2246 | + } |
| 2247 | + ], |
| 2248 | + "description": "Schema create or update contract Properties." |
| 2249 | + }, |
| 2250 | + "type": { |
| 2251 | + "type": "string", |
| 2252 | + "enum": [ |
| 2253 | + "Microsoft.ApiManagement/service/schemas" |
| 2254 | + ] |
| 2255 | + } |
| 2256 | + }, |
| 2257 | + "required": [ |
| 2258 | + "apiVersion", |
| 2259 | + "name", |
| 2260 | + "properties", |
| 2261 | + "type" |
| 2262 | + ], |
| 2263 | + "description": "Microsoft.ApiManagement/service/schemas" |
| 2264 | + }, |
2229 | 2265 | "service_subscriptions": { |
2230 | 2266 | "type": "object", |
2231 | 2267 | "properties": { |
|
3137 | 3173 | }, |
3138 | 3174 | "description": "API Release details" |
3139 | 3175 | }, |
| 3176 | + "ApiSchemaContractProperties": { |
| 3177 | + "type": "object", |
| 3178 | + "properties": { |
| 3179 | + "contentType": { |
| 3180 | + "type": "string", |
| 3181 | + "description": "Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). </br> - `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json` </br> - `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml` </br> - `OpenApi` Schema use `application/vnd.oai.openapi.components+json` </br> - `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`." |
| 3182 | + }, |
| 3183 | + "document": { |
| 3184 | + "oneOf": [ |
| 3185 | + { |
| 3186 | + "$ref": "#/definitions/ApiSchemaDocumentProperties" |
| 3187 | + }, |
| 3188 | + { |
| 3189 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 3190 | + } |
| 3191 | + ], |
| 3192 | + "description": "Api Schema Document Properties." |
| 3193 | + } |
| 3194 | + }, |
| 3195 | + "required": [ |
| 3196 | + "contentType" |
| 3197 | + ], |
| 3198 | + "description": "API Schema create or update contract Properties." |
| 3199 | + }, |
| 3200 | + "ApiSchemaDocumentProperties": { |
| 3201 | + "type": "object", |
| 3202 | + "properties": { |
| 3203 | + "components": { |
| 3204 | + "type": "object", |
| 3205 | + "properties": {}, |
| 3206 | + "description": "Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise." |
| 3207 | + }, |
| 3208 | + "definitions": { |
| 3209 | + "type": "object", |
| 3210 | + "properties": {}, |
| 3211 | + "description": "Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise." |
| 3212 | + }, |
| 3213 | + "value": { |
| 3214 | + "type": "string", |
| 3215 | + "description": "Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI." |
| 3216 | + } |
| 3217 | + }, |
| 3218 | + "description": "Api Schema Document Properties." |
| 3219 | + }, |
3140 | 3220 | "ApiVersionConstraint": { |
3141 | 3221 | "type": "object", |
3142 | 3222 | "properties": { |
|
5610 | 5690 | "SchemaContractProperties": { |
5611 | 5691 | "type": "object", |
5612 | 5692 | "properties": { |
5613 | | - "contentType": { |
| 5693 | + "description": { |
5614 | 5694 | "type": "string", |
5615 | | - "description": "Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). </br> - `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json` </br> - `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml` </br> - `OpenApi` Schema use `application/vnd.oai.openapi.components+json` </br> - `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`." |
| 5695 | + "description": "Free-form schema entity description." |
5616 | 5696 | }, |
5617 | 5697 | "document": { |
| 5698 | + "type": "object", |
| 5699 | + "properties": {}, |
| 5700 | + "description": "Schema Document Properties." |
| 5701 | + }, |
| 5702 | + "schemaType": { |
5618 | 5703 | "oneOf": [ |
5619 | 5704 | { |
5620 | | - "$ref": "#/definitions/SchemaDocumentProperties" |
| 5705 | + "type": "string", |
| 5706 | + "enum": [ |
| 5707 | + "xml", |
| 5708 | + "json" |
| 5709 | + ] |
5621 | 5710 | }, |
5622 | 5711 | { |
5623 | 5712 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
5624 | 5713 | } |
5625 | 5714 | ], |
5626 | | - "description": "Schema Document Properties." |
5627 | | - } |
5628 | | - }, |
5629 | | - "required": [ |
5630 | | - "contentType" |
5631 | | - ], |
5632 | | - "description": "API Schema create or update contract Properties." |
5633 | | - }, |
5634 | | - "SchemaDocumentProperties": { |
5635 | | - "type": "object", |
5636 | | - "properties": { |
5637 | | - "components": { |
5638 | | - "type": "object", |
5639 | | - "properties": {}, |
5640 | | - "description": "Types definitions. Used for OpenAPI v3 schemas only, null otherwise." |
5641 | | - }, |
5642 | | - "definitions": { |
5643 | | - "type": "object", |
5644 | | - "properties": {}, |
5645 | | - "description": "Types definitions. Used for OpenAPI v2 (Swagger) schemas only, null otherwise." |
| 5715 | + "description": "Schema Type. Immutable." |
5646 | 5716 | }, |
5647 | 5717 | "value": { |
5648 | 5718 | "type": "string", |
5649 | | - "description": "Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI." |
| 5719 | + "description": "Json-encoded string for non json-based schema." |
5650 | 5720 | } |
5651 | 5721 | }, |
5652 | | - "description": "Schema Document Properties." |
| 5722 | + "required": [ |
| 5723 | + "schemaType" |
| 5724 | + ], |
| 5725 | + "description": "Schema create or update contract Properties." |
5653 | 5726 | }, |
5654 | 5727 | "service_apis_childResource": { |
5655 | 5728 | "type": "object", |
|
6109 | 6182 | ] |
6110 | 6183 | }, |
6111 | 6184 | "name": { |
6112 | | - "oneOf": [ |
6113 | | - { |
6114 | | - "type": "string", |
6115 | | - "pattern": "^[^*#&+:<>?]+$", |
6116 | | - "minLength": 1, |
6117 | | - "maxLength": 80 |
6118 | | - }, |
6119 | | - { |
6120 | | - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
6121 | | - } |
6122 | | - ], |
6123 | | - "description": "Schema identifier within an API. Must be unique in the current API Management service instance." |
| 6185 | + "type": "string", |
| 6186 | + "minLength": 1, |
| 6187 | + "maxLength": 80, |
| 6188 | + "description": "Schema id identifier. Must be unique in the current API Management service instance." |
6124 | 6189 | }, |
6125 | 6190 | "properties": { |
6126 | 6191 | "oneOf": [ |
6127 | 6192 | { |
6128 | | - "$ref": "#/definitions/SchemaContractProperties" |
| 6193 | + "$ref": "#/definitions/ApiSchemaContractProperties" |
6129 | 6194 | }, |
6130 | 6195 | { |
6131 | 6196 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
|
7525 | 7590 | ], |
7526 | 7591 | "description": "Microsoft.ApiManagement/service/products/tags" |
7527 | 7592 | }, |
| 7593 | + "service_schemas_childResource": { |
| 7594 | + "type": "object", |
| 7595 | + "properties": { |
| 7596 | + "apiVersion": { |
| 7597 | + "type": "string", |
| 7598 | + "enum": [ |
| 7599 | + "2021-04-01-preview" |
| 7600 | + ] |
| 7601 | + }, |
| 7602 | + "name": { |
| 7603 | + "type": "string", |
| 7604 | + "minLength": 1, |
| 7605 | + "maxLength": 80, |
| 7606 | + "description": "Schema id identifier. Must be unique in the current API Management service instance." |
| 7607 | + }, |
| 7608 | + "properties": { |
| 7609 | + "oneOf": [ |
| 7610 | + { |
| 7611 | + "$ref": "#/definitions/SchemaContractProperties" |
| 7612 | + }, |
| 7613 | + { |
| 7614 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 7615 | + } |
| 7616 | + ], |
| 7617 | + "description": "Schema create or update contract Properties." |
| 7618 | + }, |
| 7619 | + "type": { |
| 7620 | + "type": "string", |
| 7621 | + "enum": [ |
| 7622 | + "schemas" |
| 7623 | + ] |
| 7624 | + } |
| 7625 | + }, |
| 7626 | + "required": [ |
| 7627 | + "apiVersion", |
| 7628 | + "name", |
| 7629 | + "properties", |
| 7630 | + "type" |
| 7631 | + ], |
| 7632 | + "description": "Microsoft.ApiManagement/service/schemas" |
| 7633 | + }, |
7528 | 7634 | "service_subscriptions_childResource": { |
7529 | 7635 | "type": "object", |
7530 | 7636 | "properties": { |
|
0 commit comments