@azure-tools/typespec-autorest 0.41.0-dev.6 → 0.41.0-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schema/dist/schema.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-autorest",
|
|
3
|
-
"version": "0.41.0-dev.
|
|
3
|
+
"version": "0.41.0-dev.8",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting openapi from the TypeSpec REST protocol binding",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
package/schema/dist/schema.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
const schema = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"schema.json","$defs":{"Contact":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Contact","type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}}},"License":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"License","type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name"]},"Info":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Info","type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"$ref":"Contact"},"license":{"$ref":"License"}},"required":["title","version"]},"nonNegativeInteger":{"type":"integer","minimum":0,"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"nonNegativeInteger"},"SchemaProperties":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SchemaProperties","type":"object","properties":{},"additionalProperties":{"$ref":"Schema"},"x-ordering":"keep"},"XmsEnumValue":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsEnumValue","type":"object","properties":{"name":{"type":"string"},"value":{},"description":{"type":"string"},"allowedValues":{"type":"array","items":{}}},"required":["value"]},"XmsEnum":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsEnum","type":"object","properties":{"name":{"type":"string"},"modelAsString":{"type":"boolean"},"oldModelAsString":{"type":"boolean"},"modelAsExtensible":{"type":"boolean"},"values":{"type":"array","items":{"$ref":"XmsEnumValue"}}}},"xml":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"xml","type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean"},"wrapped":{"type":"boolean"}}},"ExternalDocs":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"ExternalDocs","type":"object","properties":{"description":{"type":"string"},"url":{"type":"string"}},"required":["url"]},"XmsMutability":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsMutability","type":"array","items":{"anyOf":[{"type":"string","const":"create"},{"type":"string","const":"read"},{"type":"string","const":"update"}]}},"Schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Schema","type":"object","properties":{"$ref":{"type":"string","description":"Ref to another schema"},"type":{"type":"string","description":"Schema type"},"format":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean"},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean"},"minLength":{"$ref":"nonNegativeInteger"},"maxLength":{"$ref":"nonNegativeInteger"},"pattern":{"type":"string"},"minItems":{"$ref":"nonNegativeInteger"},"maxItems":{"$ref":"nonNegativeInteger"},"uniqueItems":{"type":"boolean"},"minProperties":{"$ref":"nonNegativeInteger"},"maxProperties":{"$ref":"nonNegativeInteger"},"multipleOf":{"type":"number"},"properties":{"$ref":"SchemaProperties"},"discriminator":{"type":"string"},"required":{"type":"array","items":{"type":"string"}},"enum":{"type":"array","items":{"type":"string"}},"x-ms-enum":{"$ref":"XmsEnum"},"x-nullable":{"type":"boolean"},"additionalProperties":{"anyOf":[{"$ref":"Schema"},{"type":"boolean"}]},"items":{"$ref":"Schema"},"allOf":{"type":"array","items":{"$ref":"Schema"}},"readOnly":{"type":"boolean"},"xml":{"$ref":"xml"},"externalDocs":{"$ref":"ExternalDocs"},"example":{},"x-ms-azure-resource":{"type":"boolean"},"x-ms-client-flatten":{"type":"boolean"},"x-ms-client-default":{},"x-ms-client-name":{"type":"string"},"x-ms-discriminator-value":{"type":"string"},"x-ms-external":{"type":"boolean"},"x-ms-identifiers":{"type":"array","items":{"type":"string"}},"x-ms-mutability":{"$ref":"XmsMutability"},"x-ms-secret":{"type":"boolean"}}},"XmsParameterGrouping":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsParameterGrouping","type":"object","properties":{"name":{"type":"string"},"postfix":{"type":"string"}}},"Parameter":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Parameter","type":"object","properties":{"name":{"type":"string"},"in":{"anyOf":[{"type":"string","const":"body"},{"type":"string","const":"header"},{"type":"string","const":"query"},{"type":"string","const":"cookie"}]},"description":{"type":"string"},"required":{"type":"boolean"},"schema":{"$ref":"Schema"},"type":{"type":"string"},"format":{"type":"string"},"items":{"$ref":"Schema"},"collectionFormat":{"type":"string"},"default":{},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean"},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean"},"minLength":{"$ref":"nonNegativeInteger"},"maxLength":{"$ref":"nonNegativeInteger"},"pattern":{"type":"string"},"minItems":{"$ref":"nonNegativeInteger"},"maxItems":{"$ref":"nonNegativeInteger"},"uniqueItems":{"type":"boolean"},"minProperties":{"$ref":"nonNegativeInteger"},"maxProperties":{"$ref":"nonNegativeInteger"},"multipleOf":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"x-ms-enum":{"$ref":"XmsEnum"},"x-ms-parameter-grouping":{"$ref":"XmsParameterGrouping"},"x-ms-parameter-location":{"anyOf":[{"type":"string","const":"client"},{"type":"string","const":"method"}]},"x-ms-api-version":{"type":"boolean"},"x-ms-client-default":{},"x-ms-header-collection-prefix":{"type":"string"},"x-ms-client-name":{"type":"string"},"x-ms-client-flatten":{"type":"boolean"}},"required":["name","in","collectionFormat"]},"XmsParameterizedHost":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsParameterizedHost","type":"object","properties":{"hostTemplate":{"type":"string"},"useSchemePrefix":{"type":"boolean"},"positionInOperation":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"last"}]},"parameters":{"type":"array","items":{"$ref":"Parameter"}}}},"SecurityRequirement":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SecurityRequirement","type":"object","properties":{},"additionalProperties":{"type":"array","items":{"type":"string"}}},"RecordString":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordString","type":"object","properties":{},"additionalProperties":{"type":"string"}},"SecurityScheme":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SecurityScheme","type":"object","properties":{"type":{"type":"string"},"description":{"type":"string"},"name":{"type":"string"},"in":{"type":"string"},"flow":{"type":"string"},"authorizationUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"RecordString"}},"required":["type"]},"SecurityDefinitions":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SecurityDefinitions","type":"object","properties":{},"additionalProperties":{"$ref":"SecurityScheme"}},"Tag":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Tag","type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"ExternalDocs"}},"required":["name"]},"Header":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Header","type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"string"},{"type":"string","const":"number"},{"type":"string","const":"integer"},{"type":"string","const":"boolean"},{"type":"string","const":"array"}]},"format":{"type":"string"},"description":{"type":"string"},"items":{"$ref":"Schema"},"collectionFormat":{"anyOf":[{"type":"string","const":"csv"},{"type":"string","const":"ssv"},{"type":"string","const":"tsv"},{"type":"string","const":"pipes"}]},"default":{},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean"},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean"},"minLength":{"$ref":"nonNegativeInteger"},"maxLength":{"$ref":"nonNegativeInteger"},"pattern":{"type":"string"},"minItems":{"$ref":"nonNegativeInteger"},"maxItems":{"$ref":"nonNegativeInteger"},"uniqueItems":{"type":"boolean"},"minProperties":{"$ref":"nonNegativeInteger"},"maxProperties":{"$ref":"nonNegativeInteger"},"multipleOf":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"x-ms-client-name":{"type":"string"},"x-ms-enum":{"$ref":"XmsEnum"},"x-ms-header-collection-prefix":{"type":"string"},"x-ms-secret":{"type":"boolean"},"x-nullable":{"type":"boolean"}},"required":["type"]},"Headers":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Headers","type":"object","properties":{},"additionalProperties":{"$ref":"Header"},"x-ordering":"keep"},"Examples":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Examples","type":"object","properties":{},"additionalProperties":{"type":"object","properties":{}}},"Response":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Response","type":"object","properties":{"description":{"type":"string"},"schema":{"$ref":"Schema"},"headers":{"$ref":"Headers"},"x-ms-error-response":{"type":"boolean"},"examples":{"$ref":"Examples"}},"required":["description"]},"RecordResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordResponse","type":"object","properties":{},"additionalProperties":{"$ref":"Response"}},"XmsExamples":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsExamples","type":"object","properties":{},"additionalProperties":{"type":"object","properties":{}},"description":"Describes the 'x-ms-examples' extension."},"XmsLongRunningOperationOptions":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsLongRunningOperationOptions","type":"object","properties":{"final-state-via":{"anyOf":[{"type":"string","const":"azure-async-operation"},{"type":"string","const":"location"},{"type":"string","const":"original-uri"},{"type":"string","const":"operation-location"},{"type":"string","const":"final-state-schema"}],"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- `operation-location` - poll until terminal state, the final response will be available at the uri pointed to by the header `Operation-Location`"}},"required":["final-state-via"],"description":"Indicates whether the operation is long running (asynchronous). `true` value indicates that it is a long running operation."},"XmsPageable":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsPageable","type":"object","properties":{"nextLinkName":{"anyOf":[{"type":"string"},{"type":"null"}]},"itemName":{"anyOf":[{"type":"string"},{"type":"null"}]},"operationName":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"Operation":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Operation","type":"object","properties":{"operationId":{"type":"string","description":"A unique identifier of the operation."},"tags":{"type":"array","items":{"type":"string"}},"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":"ExternalDocs"},"produces":{"type":"array","items":{"type":"string"},"description":"A list of MIME types the API can produce."},"consumes":{"type":"array","items":{"type":"string"},"description":"A list of MIME types the API can consume."},"parameters":{"type":"array","items":{"$ref":"Parameter"}},"responses":{"$ref":"RecordResponse"},"schemes":{"type":"array","items":{"anyOf":[{"type":"string","const":"http"},{"type":"string","const":"https"},{"type":"string","const":"ws"},{"type":"string","const":"wss"}]}},"deprecated":{"type":"boolean"},"security":{"type":"array","items":{"$ref":"SecurityRequirement"}},"x-ms-client-name":{"type":"string"},"x-ms-examples":{"$ref":"XmsExamples"},"x-ms-long-running-operation-options":{"$ref":"XmsLongRunningOperationOptions"},"x-ms-long-running-operation":{"type":"boolean"},"x-ms-odata":{"type":"string"},"x-ms-pageable":{"$ref":"XmsPageable"},"x-ms-request-id":{"type":"string"}},"required":["responses"]},"PathItem":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"PathItem","type":"object","properties":{"$ref":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"Parameter"}},"get":{"$ref":"Operation"},"put":{"$ref":"Operation"},"post":{"$ref":"Operation"},"patch":{"$ref":"Operation"},"delete":{"$ref":"Operation"},"options":{"$ref":"Operation"},"head":{"$ref":"Operation"}}},"Paths":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Paths","type":"object","properties":{},"additionalProperties":{"$ref":"PathItem"},"x-ordering":"url"},"RecordSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordSchema","type":"object","properties":{},"additionalProperties":{"$ref":"Schema"}},"RecordParameter":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordParameter","type":"object","properties":{},"additionalProperties":{"$ref":"Parameter"}},"XmsPermissions":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsPermissions","type":"object","properties":{"actions":{"type":"string"},"dataActions":{"type":"string"},"rolesWithThesePermissions":{"type":"string"},"moreInfoLink":{"type":"string"}}},"AutorestOpenAPISchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"AutorestOpenAPISchema","type":"object","properties":{"swagger":{"type":"string","const":"2.0"},"info":{"$ref":"Info"},"basePath":{"type":"string"},"schemes":{"type":"array","items":{"anyOf":[{"type":"string","const":"http"},{"type":"string","const":"https"},{"type":"string","const":"ws"},{"type":"string","const":"wss"}]}},"host":{"type":"string"},"x-ms-parameterized-host":{"$ref":"XmsParameterizedHost"},"produces":{"type":"array","items":{"type":"string"}},"consumes":{"type":"array","items":{"type":"string"}},"security":{"type":"array","items":{"$ref":"SecurityRequirement"}},"securityDefinitions":{"$ref":"SecurityDefinitions"},"tags":{"type":"array","items":{"$ref":"Tag"}},"paths":{"$ref":"Paths"},"x-ms-paths":{"$ref":"Paths"},"definitions":{"$ref":"RecordSchema"},"parameters":{"$ref":"RecordParameter"},"responses":{"$ref":"RecordResponse"},"externalDocs":{"$ref":"ExternalDocs"},"x-ms-permissions":{"$ref":"XmsPermissions"}},"required":["swagger","info","paths"]}}};
|
|
2
|
+
const schema = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"schema.json","$defs":{"Contact":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Contact","type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}}},"License":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"License","type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name"]},"Info":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Info","type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"$ref":"Contact"},"license":{"$ref":"License"}},"required":["title","version"]},"nonNegativeInteger":{"type":"integer","minimum":0,"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"nonNegativeInteger"},"SchemaProperties":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SchemaProperties","type":"object","properties":{},"additionalProperties":{"$ref":"Schema"},"x-ordering":"keep"},"XmsEnumValue":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsEnumValue","type":"object","properties":{"name":{"type":"string"},"value":{},"description":{"type":"string"},"allowedValues":{"type":"array","items":{}}},"required":["value"]},"XmsEnum":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsEnum","type":"object","properties":{"name":{"type":"string"},"modelAsString":{"type":"boolean"},"oldModelAsString":{"type":"boolean"},"modelAsExtensible":{"type":"boolean"},"values":{"type":"array","items":{"$ref":"XmsEnumValue"}}}},"xml":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"xml","type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean"},"wrapped":{"type":"boolean"}}},"ExternalDocs":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"ExternalDocs","type":"object","properties":{"description":{"type":"string"},"url":{"type":"string"}},"required":["url"]},"XmsMutability":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsMutability","type":"array","items":{"anyOf":[{"type":"string","const":"create"},{"type":"string","const":"read"},{"type":"string","const":"update"}]}},"Schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Schema","type":"object","properties":{"$ref":{"type":"string","description":"Ref to another schema"},"type":{"type":"string","description":"Schema type"},"format":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean"},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean"},"minLength":{"$ref":"nonNegativeInteger"},"maxLength":{"$ref":"nonNegativeInteger"},"pattern":{"type":"string"},"minItems":{"$ref":"nonNegativeInteger"},"maxItems":{"$ref":"nonNegativeInteger"},"uniqueItems":{"type":"boolean"},"minProperties":{"$ref":"nonNegativeInteger"},"maxProperties":{"$ref":"nonNegativeInteger"},"multipleOf":{"type":"number"},"properties":{"$ref":"SchemaProperties"},"discriminator":{"type":"string"},"required":{"type":"array","items":{"type":"string"}},"enum":{"type":"array","items":{"type":"string"}},"x-ms-enum":{"$ref":"XmsEnum"},"x-nullable":{"type":"boolean"},"additionalProperties":{"anyOf":[{"$ref":"Schema"},{"type":"boolean"}]},"items":{"$ref":"Schema"},"allOf":{"type":"array","items":{"$ref":"Schema"}},"readOnly":{"type":"boolean"},"xml":{"$ref":"xml"},"externalDocs":{"$ref":"ExternalDocs"},"example":{},"x-ms-azure-resource":{"type":"boolean"},"x-ms-client-flatten":{"type":"boolean"},"x-ms-client-default":{},"x-ms-client-name":{"type":"string"},"x-ms-discriminator-value":{"type":"string"},"x-ms-external":{"type":"boolean"},"x-ms-identifiers":{"type":"array","items":{"type":"string"}},"x-ms-mutability":{"$ref":"XmsMutability"},"x-ms-secret":{"type":"boolean"}}},"XmsParameterGrouping":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsParameterGrouping","type":"object","properties":{"name":{"type":"string"},"postfix":{"type":"string"}}},"Parameter":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Parameter","type":"object","properties":{"name":{"type":"string"},"in":{"anyOf":[{"type":"string","const":"body"},{"type":"string","const":"header"},{"type":"string","const":"query"},{"type":"string","const":"cookie"}]},"description":{"type":"string"},"required":{"type":"boolean"},"schema":{"$ref":"Schema"},"type":{"type":"string"},"format":{"type":"string"},"items":{"$ref":"Schema"},"collectionFormat":{"type":"string"},"default":{},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean"},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean"},"minLength":{"$ref":"nonNegativeInteger"},"maxLength":{"$ref":"nonNegativeInteger"},"pattern":{"type":"string"},"minItems":{"$ref":"nonNegativeInteger"},"maxItems":{"$ref":"nonNegativeInteger"},"uniqueItems":{"type":"boolean"},"minProperties":{"$ref":"nonNegativeInteger"},"maxProperties":{"$ref":"nonNegativeInteger"},"multipleOf":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"x-ms-enum":{"$ref":"XmsEnum"},"x-ms-parameter-grouping":{"$ref":"XmsParameterGrouping"},"x-ms-parameter-location":{"anyOf":[{"type":"string","const":"client"},{"type":"string","const":"method"}]},"x-ms-api-version":{"type":"boolean"},"x-ms-client-default":{},"x-ms-header-collection-prefix":{"type":"string"},"x-ms-client-name":{"type":"string"},"x-ms-client-flatten":{"type":"boolean"}},"required":["name","in","collectionFormat"]},"XmsParameterizedHost":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsParameterizedHost","type":"object","properties":{"hostTemplate":{"type":"string"},"useSchemePrefix":{"type":"boolean"},"positionInOperation":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"last"}]},"parameters":{"type":"array","items":{"$ref":"Parameter"}}}},"SecurityRequirement":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SecurityRequirement","type":"object","properties":{},"additionalProperties":{"type":"array","items":{"type":"string"}}},"RecordString":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordString","type":"object","properties":{},"additionalProperties":{"type":"string"}},"SecurityScheme":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SecurityScheme","type":"object","properties":{"type":{"type":"string"},"description":{"type":"string"},"name":{"type":"string"},"in":{"type":"string"},"flow":{"type":"string"},"authorizationUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"RecordString"}},"required":["type"]},"SecurityDefinitions":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"SecurityDefinitions","type":"object","properties":{},"additionalProperties":{"$ref":"SecurityScheme"}},"Tag":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Tag","type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"ExternalDocs"}},"required":["name"]},"Header":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Header","type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"string"},{"type":"string","const":"number"},{"type":"string","const":"integer"},{"type":"string","const":"boolean"},{"type":"string","const":"array"}]},"format":{"type":"string"},"description":{"type":"string"},"items":{"$ref":"Schema"},"collectionFormat":{"anyOf":[{"type":"string","const":"csv"},{"type":"string","const":"ssv"},{"type":"string","const":"tsv"},{"type":"string","const":"pipes"}]},"default":{},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean"},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean"},"minLength":{"$ref":"nonNegativeInteger"},"maxLength":{"$ref":"nonNegativeInteger"},"pattern":{"type":"string"},"minItems":{"$ref":"nonNegativeInteger"},"maxItems":{"$ref":"nonNegativeInteger"},"uniqueItems":{"type":"boolean"},"minProperties":{"$ref":"nonNegativeInteger"},"maxProperties":{"$ref":"nonNegativeInteger"},"multipleOf":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"x-ms-client-name":{"type":"string"},"x-ms-enum":{"$ref":"XmsEnum"},"x-ms-header-collection-prefix":{"type":"string"},"x-ms-secret":{"type":"boolean"},"x-nullable":{"type":"boolean"}},"required":["type"]},"Headers":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Headers","type":"object","properties":{},"additionalProperties":{"$ref":"Header"}},"Examples":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Examples","type":"object","properties":{},"additionalProperties":{"type":"object","properties":{}}},"Response":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Response","type":"object","properties":{"description":{"type":"string"},"schema":{"$ref":"Schema"},"headers":{"$ref":"Headers"},"x-ms-error-response":{"type":"boolean"},"examples":{"$ref":"Examples"}},"required":["description"]},"RecordResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordResponse","type":"object","properties":{},"additionalProperties":{"$ref":"Response"}},"XmsExamples":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsExamples","type":"object","properties":{},"additionalProperties":{"type":"object","properties":{}},"description":"Describes the 'x-ms-examples' extension."},"XmsLongRunningOperationOptions":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsLongRunningOperationOptions","type":"object","properties":{"final-state-via":{"anyOf":[{"type":"string","const":"azure-async-operation"},{"type":"string","const":"location"},{"type":"string","const":"original-uri"},{"type":"string","const":"operation-location"},{"type":"string","const":"final-state-schema"}],"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- `operation-location` - poll until terminal state, the final response will be available at the uri pointed to by the header `Operation-Location`"}},"required":["final-state-via"],"description":"Indicates whether the operation is long running (asynchronous). `true` value indicates that it is a long running operation."},"XmsPageable":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsPageable","type":"object","properties":{"nextLinkName":{"anyOf":[{"type":"string"},{"type":"null"}]},"itemName":{"anyOf":[{"type":"string"},{"type":"null"}]},"operationName":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"Operation":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Operation","type":"object","properties":{"operationId":{"type":"string","description":"A unique identifier of the operation."},"tags":{"type":"array","items":{"type":"string"}},"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":"ExternalDocs"},"produces":{"type":"array","items":{"type":"string"},"description":"A list of MIME types the API can produce."},"consumes":{"type":"array","items":{"type":"string"},"description":"A list of MIME types the API can consume."},"parameters":{"type":"array","items":{"$ref":"Parameter"}},"responses":{"$ref":"RecordResponse"},"schemes":{"type":"array","items":{"anyOf":[{"type":"string","const":"http"},{"type":"string","const":"https"},{"type":"string","const":"ws"},{"type":"string","const":"wss"}]}},"deprecated":{"type":"boolean"},"security":{"type":"array","items":{"$ref":"SecurityRequirement"}},"x-ms-client-name":{"type":"string"},"x-ms-examples":{"$ref":"XmsExamples"},"x-ms-long-running-operation-options":{"$ref":"XmsLongRunningOperationOptions"},"x-ms-long-running-operation":{"type":"boolean"},"x-ms-odata":{"type":"string"},"x-ms-pageable":{"$ref":"XmsPageable"},"x-ms-request-id":{"type":"string"}},"required":["responses"]},"PathItem":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"PathItem","type":"object","properties":{"$ref":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"Parameter"}},"get":{"$ref":"Operation"},"put":{"$ref":"Operation"},"post":{"$ref":"Operation"},"patch":{"$ref":"Operation"},"delete":{"$ref":"Operation"},"options":{"$ref":"Operation"},"head":{"$ref":"Operation"}}},"Paths":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"Paths","type":"object","properties":{},"additionalProperties":{"$ref":"PathItem"},"x-ordering":"url"},"RecordSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordSchema","type":"object","properties":{},"additionalProperties":{"$ref":"Schema"}},"RecordParameter":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"RecordParameter","type":"object","properties":{},"additionalProperties":{"$ref":"Parameter"}},"XmsPermissions":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"XmsPermissions","type":"object","properties":{"actions":{"type":"string"},"dataActions":{"type":"string"},"rolesWithThesePermissions":{"type":"string"},"moreInfoLink":{"type":"string"}}},"AutorestOpenAPISchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"AutorestOpenAPISchema","type":"object","properties":{"swagger":{"type":"string","const":"2.0"},"info":{"$ref":"Info"},"basePath":{"type":"string"},"schemes":{"type":"array","items":{"anyOf":[{"type":"string","const":"http"},{"type":"string","const":"https"},{"type":"string","const":"ws"},{"type":"string","const":"wss"}]}},"host":{"type":"string"},"x-ms-parameterized-host":{"$ref":"XmsParameterizedHost"},"produces":{"type":"array","items":{"type":"string"}},"consumes":{"type":"array","items":{"type":"string"}},"security":{"type":"array","items":{"$ref":"SecurityRequirement"}},"securityDefinitions":{"$ref":"SecurityDefinitions"},"tags":{"type":"array","items":{"$ref":"Tag"}},"paths":{"$ref":"Paths"},"x-ms-paths":{"$ref":"Paths"},"definitions":{"$ref":"RecordSchema"},"parameters":{"$ref":"RecordParameter"},"responses":{"$ref":"RecordResponse"},"externalDocs":{"$ref":"ExternalDocs"},"x-ms-permissions":{"$ref":"XmsPermissions"}},"required":["swagger","info","paths"]}}};
|
|
3
3
|
export default schema;
|