@azure-tools/typespec-autorest-canonical 0.3.0-dev.4 → 0.3.0-dev.6

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.
@@ -1,42 +0,0 @@
1
- import { ModelProperty, Operation, Program, Service, Type } from "@typespec/compiler";
2
- export interface AutorestCanonicalEmitterContext {
3
- program: Program;
4
- service: Service;
5
- version?: string;
6
- getClientName: (type: Type & {
7
- name: string;
8
- }) => string;
9
- }
10
- /**
11
- * Determines whether a type will be inlined in OpenAPI rather than defined
12
- * as a schema and referenced.
13
- *
14
- * All anonymous types (anonymous models, arrays, tuples, etc.) are inlined.
15
- *
16
- * Template instantiations are inlined unless they have a friendly name.
17
- *
18
- * A friendly name can be provided by the user using `@friendlyName`
19
- * decorator, or chosen by default in simple cases.
20
- */
21
- export declare function shouldInline(program: Program, type: Type): boolean;
22
- /**
23
- * Resolve the OpenAPI operation ID for the given operation using the following logic:
24
- * - If @operationId was specified use that value
25
- * - If operation is defined at the root or under the service namespace return `<operation.name>`
26
- * - Otherwise(operation is under another namespace or interface) return `<namespace/interface.name>_<operation.name>`
27
- *
28
- * @param program TypeSpec Program
29
- * @param operation Operation
30
- * @returns Operation ID in this format `<name>` or `<group>_<name>`
31
- */
32
- export declare function resolveOperationId(context: AutorestCanonicalEmitterContext, operation: Operation): string;
33
- /**
34
- * Determines if a property is read-only, which is defined as being
35
- * decorated `@visibility("read")`.
36
- *
37
- * If there is more than 1 `@visibility` argument, then the property is not
38
- * read-only. For example, `@visibility("read", "update")` does not
39
- * designate a read-only property.
40
- */
41
- export declare function isReadonlyProperty(program: Program, property: ModelProperty): boolean;
42
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,IAAI,EAML,MAAM,oBAAoB,CAAC;AAI5B,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CAC1D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAelE;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,+BAA+B,EAAE,SAAS,EAAE,SAAS,UAqBhG;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAK3E"}
package/dist/src/utils.js DELETED
@@ -1,79 +0,0 @@
1
- import { getFriendlyName, getVisibility, isGlobalNamespace, isService, isTemplateInstance, } from "@typespec/compiler";
2
- import { getOperationId } from "@typespec/openapi";
3
- import { pascalCase } from "change-case";
4
- /**
5
- * Determines whether a type will be inlined in OpenAPI rather than defined
6
- * as a schema and referenced.
7
- *
8
- * All anonymous types (anonymous models, arrays, tuples, etc.) are inlined.
9
- *
10
- * Template instantiations are inlined unless they have a friendly name.
11
- *
12
- * A friendly name can be provided by the user using `@friendlyName`
13
- * decorator, or chosen by default in simple cases.
14
- */
15
- export function shouldInline(program, type) {
16
- if (getFriendlyName(program, type)) {
17
- return false;
18
- }
19
- switch (type.kind) {
20
- case "Model":
21
- return !type.name || isTemplateInstance(type);
22
- case "Scalar":
23
- return program.checker.isStdType(type) || isTemplateInstance(type);
24
- case "Enum":
25
- case "Union":
26
- return !type.name;
27
- default:
28
- return true;
29
- }
30
- }
31
- /**
32
- * Resolve the OpenAPI operation ID for the given operation using the following logic:
33
- * - If @operationId was specified use that value
34
- * - If operation is defined at the root or under the service namespace return `<operation.name>`
35
- * - Otherwise(operation is under another namespace or interface) return `<namespace/interface.name>_<operation.name>`
36
- *
37
- * @param program TypeSpec Program
38
- * @param operation Operation
39
- * @returns Operation ID in this format `<name>` or `<group>_<name>`
40
- */
41
- export function resolveOperationId(context, operation) {
42
- const { program, getClientName } = context;
43
- const explicitOperationId = getOperationId(program, operation);
44
- if (explicitOperationId) {
45
- return explicitOperationId;
46
- }
47
- const operationName = getClientName(operation);
48
- if (operation.interface) {
49
- return pascalCaseForOperationId(`${getClientName(operation.interface)}_${operationName}`);
50
- }
51
- const namespace = operation.namespace;
52
- if (namespace === undefined ||
53
- isGlobalNamespace(program, namespace) ||
54
- isService(program, namespace)) {
55
- return pascalCase(operationName);
56
- }
57
- return pascalCaseForOperationId(`${namespace.name}_${operationName}`);
58
- }
59
- /**
60
- * Determines if a property is read-only, which is defined as being
61
- * decorated `@visibility("read")`.
62
- *
63
- * If there is more than 1 `@visibility` argument, then the property is not
64
- * read-only. For example, `@visibility("read", "update")` does not
65
- * designate a read-only property.
66
- */
67
- export function isReadonlyProperty(program, property) {
68
- const visibility = getVisibility(program, property);
69
- // note: multiple visibilities that include read are not handled using
70
- // readonly: true, but using separate schemas.
71
- return visibility?.length === 1 && visibility[0] === "read";
72
- }
73
- function pascalCaseForOperationId(name) {
74
- return name
75
- .split("_")
76
- .map((s) => pascalCase(s))
77
- .join("_");
78
- }
79
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AASzC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,IAAU;IACvD,IAAI,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,OAAO;YACV,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAChD,KAAK,QAAQ;YACX,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACrE,KAAK,MAAM,CAAC;QACZ,KAAK,OAAO;YACV,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;QACpB;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAwC,EAAE,SAAoB;IAC/F,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAC3C,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC/D,IAAI,mBAAmB,EAAE,CAAC;QACxB,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED,MAAM,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;IAC/C,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;QACxB,OAAO,wBAAwB,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;IAC5F,CAAC;IACD,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IACtC,IACE,SAAS,KAAK,SAAS;QACvB,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC;QACrC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,EAC7B,CAAC;QACD,OAAO,UAAU,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,wBAAwB,CAAC,GAAG,SAAS,CAAC,IAAI,IAAI,aAAa,EAAE,CAAC,CAAC;AACxE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,QAAuB;IAC1E,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACpD,sEAAsE;IACtE,8CAA8C;IAC9C,OAAO,UAAU,EAAE,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAC9D,CAAC;AAED,SAAS,wBAAwB,CAAC,IAAY;IAC5C,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;SACzB,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
@@ -1,3 +0,0 @@
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"}}},"AutorestCanonicalOpenAPISchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"AutorestCanonicalOpenAPISchema","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
- export default schema;