UNPKG

@typespec/openapi

Version:

TypeSpec library providing OpenAPI concepts

138 lines 8.8 kB
export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{ "invalid-extension-key": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "duplicate-type-name": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; readonly parameter: import("@typespec/compiler").CallableMessage<["value"]>; }; "not-url": { readonly default: import("@typespec/compiler").CallableMessage<["property", "value"]>; }; "duplicate-tag": { readonly default: import("@typespec/compiler").CallableMessage<["tagName"]>; }; "mixed-tag-metadata-form": { readonly default: "Cannot mix the array form and the inline form of @tagMetadata on the same namespace. Use either @tagMetadata(#[...]) or multiple @tagMetadata(\"name\", #{...}) calls, not both."; }; "tag-metadata-array-with-metadata-arg": { readonly default: "When using the array form of @tagMetadata, the second argument (tagMetadata) must not be provided. Include all tag metadata inside the array elements."; }; "tag-metadata-target-service": { readonly default: import("@typespec/compiler").CallableMessage<["namespace"]>; }; "default-response-with-status-code": { readonly statusCode: "@defaultResponse should not be used on a model that already has a status code defined. The status code will be ignored in favor of the default response."; readonly error: "@defaultResponse should not be used on a model that is marked with @error. Use either @defaultResponse or @error, not both."; }; }, Record<string, any>, "tagsMetadata">; export declare const createDiagnostic: <C extends "invalid-extension-key" | "duplicate-type-name" | "not-url" | "duplicate-tag" | "mixed-tag-metadata-form" | "tag-metadata-array-with-metadata-arg" | "tag-metadata-target-service" | "default-response-with-status-code", M extends keyof { "invalid-extension-key": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "duplicate-type-name": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; readonly parameter: import("@typespec/compiler").CallableMessage<["value"]>; }; "not-url": { readonly default: import("@typespec/compiler").CallableMessage<["property", "value"]>; }; "duplicate-tag": { readonly default: import("@typespec/compiler").CallableMessage<["tagName"]>; }; "mixed-tag-metadata-form": { readonly default: "Cannot mix the array form and the inline form of @tagMetadata on the same namespace. Use either @tagMetadata(#[...]) or multiple @tagMetadata(\"name\", #{...}) calls, not both."; }; "tag-metadata-array-with-metadata-arg": { readonly default: "When using the array form of @tagMetadata, the second argument (tagMetadata) must not be provided. Include all tag metadata inside the array elements."; }; "tag-metadata-target-service": { readonly default: import("@typespec/compiler").CallableMessage<["namespace"]>; }; "default-response-with-status-code": { readonly statusCode: "@defaultResponse should not be used on a model that already has a status code defined. The status code will be ignored in favor of the default response."; readonly error: "@defaultResponse should not be used on a model that is marked with @error. Use either @defaultResponse or @error, not both."; }; }[C]>(diag: import("@typespec/compiler").DiagnosticReport<{ "invalid-extension-key": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "duplicate-type-name": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; readonly parameter: import("@typespec/compiler").CallableMessage<["value"]>; }; "not-url": { readonly default: import("@typespec/compiler").CallableMessage<["property", "value"]>; }; "duplicate-tag": { readonly default: import("@typespec/compiler").CallableMessage<["tagName"]>; }; "mixed-tag-metadata-form": { readonly default: "Cannot mix the array form and the inline form of @tagMetadata on the same namespace. Use either @tagMetadata(#[...]) or multiple @tagMetadata(\"name\", #{...}) calls, not both."; }; "tag-metadata-array-with-metadata-arg": { readonly default: "When using the array form of @tagMetadata, the second argument (tagMetadata) must not be provided. Include all tag metadata inside the array elements."; }; "tag-metadata-target-service": { readonly default: import("@typespec/compiler").CallableMessage<["namespace"]>; }; "default-response-with-status-code": { readonly statusCode: "@defaultResponse should not be used on a model that already has a status code defined. The status code will be ignored in favor of the default response."; readonly error: "@defaultResponse should not be used on a model that is marked with @error. Use either @defaultResponse or @error, not both."; }; }, C, M>) => import("@typespec/compiler").Diagnostic, reportDiagnostic: <C extends "invalid-extension-key" | "duplicate-type-name" | "not-url" | "duplicate-tag" | "mixed-tag-metadata-form" | "tag-metadata-array-with-metadata-arg" | "tag-metadata-target-service" | "default-response-with-status-code", M extends keyof { "invalid-extension-key": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "duplicate-type-name": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; readonly parameter: import("@typespec/compiler").CallableMessage<["value"]>; }; "not-url": { readonly default: import("@typespec/compiler").CallableMessage<["property", "value"]>; }; "duplicate-tag": { readonly default: import("@typespec/compiler").CallableMessage<["tagName"]>; }; "mixed-tag-metadata-form": { readonly default: "Cannot mix the array form and the inline form of @tagMetadata on the same namespace. Use either @tagMetadata(#[...]) or multiple @tagMetadata(\"name\", #{...}) calls, not both."; }; "tag-metadata-array-with-metadata-arg": { readonly default: "When using the array form of @tagMetadata, the second argument (tagMetadata) must not be provided. Include all tag metadata inside the array elements."; }; "tag-metadata-target-service": { readonly default: import("@typespec/compiler").CallableMessage<["namespace"]>; }; "default-response-with-status-code": { readonly statusCode: "@defaultResponse should not be used on a model that already has a status code defined. The status code will be ignored in favor of the default response."; readonly error: "@defaultResponse should not be used on a model that is marked with @error. Use either @defaultResponse or @error, not both."; }; }[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{ "invalid-extension-key": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "duplicate-type-name": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; readonly parameter: import("@typespec/compiler").CallableMessage<["value"]>; }; "not-url": { readonly default: import("@typespec/compiler").CallableMessage<["property", "value"]>; }; "duplicate-tag": { readonly default: import("@typespec/compiler").CallableMessage<["tagName"]>; }; "mixed-tag-metadata-form": { readonly default: "Cannot mix the array form and the inline form of @tagMetadata on the same namespace. Use either @tagMetadata(#[...]) or multiple @tagMetadata(\"name\", #{...}) calls, not both."; }; "tag-metadata-array-with-metadata-arg": { readonly default: "When using the array form of @tagMetadata, the second argument (tagMetadata) must not be provided. Include all tag metadata inside the array elements."; }; "tag-metadata-target-service": { readonly default: import("@typespec/compiler").CallableMessage<["namespace"]>; }; "default-response-with-status-code": { readonly statusCode: "@defaultResponse should not be used on a model that already has a status code defined. The status code will be ignored in favor of the default response."; readonly error: "@defaultResponse should not be used on a model that is marked with @error. Use either @defaultResponse or @error, not both."; }; }, C, M>) => void, createStateSymbol: (name: string) => symbol, OpenAPIKeys: Record<"tagsMetadata", symbol>; //# sourceMappingURL=lib.d.ts.map