@typespec/openapi3
Advanced tools
Comparing version 0.48.0-dev.1 to 0.48.0-dev.2
@@ -55,2 +55,8 @@ import { JSONSchemaType } from "@typespec/compiler"; | ||
readonly diagnostics: { | ||
readonly "inconsistent-shared-route-request-visibility": { | ||
readonly severity: "error"; | ||
readonly messages: { | ||
readonly default: "All operations with `@sharedRoutes` must have the same `@requestVisibility`."; | ||
}; | ||
}; | ||
readonly "invalid-server-variable": { | ||
@@ -147,2 +153,5 @@ readonly severity: "error"; | ||
export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{ | ||
"inconsistent-shared-route-request-visibility": { | ||
readonly default: "All operations with `@sharedRoutes` must have the same `@requestVisibility`."; | ||
}; | ||
"invalid-server-variable": { | ||
@@ -192,3 +201,6 @@ readonly default: import("@typespec/compiler").CallableMessage<["propName"]>; | ||
}, OpenAPI3EmitterOptions>; | ||
export declare const reportDiagnostic: <C extends "invalid-server-variable" | "invalid-format" | "resource-namespace" | "path-query" | "duplicate-body" | "duplicate-header" | "status-code-in-default-response" | "invalid-schema" | "union-null" | "empty-union" | "empty-enum" | "enum-unique-type" | "invalid-default" | "inline-cycle", M extends keyof { | ||
export declare const reportDiagnostic: <C extends "inconsistent-shared-route-request-visibility" | "invalid-server-variable" | "invalid-format" | "resource-namespace" | "path-query" | "duplicate-body" | "duplicate-header" | "status-code-in-default-response" | "invalid-schema" | "union-null" | "empty-union" | "empty-enum" | "enum-unique-type" | "invalid-default" | "inline-cycle", M extends keyof { | ||
"inconsistent-shared-route-request-visibility": { | ||
readonly default: "All operations with `@sharedRoutes` must have the same `@requestVisibility`."; | ||
}; | ||
"invalid-server-variable": { | ||
@@ -238,2 +250,5 @@ readonly default: import("@typespec/compiler").CallableMessage<["propName"]>; | ||
}[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{ | ||
"inconsistent-shared-route-request-visibility": { | ||
readonly default: "All operations with `@sharedRoutes` must have the same `@requestVisibility`."; | ||
}; | ||
"invalid-server-variable": { | ||
@@ -240,0 +255,0 @@ readonly default: import("@typespec/compiler").CallableMessage<["propName"]>; |
@@ -66,2 +66,8 @@ import { createTypeSpecLibrary, paramMessage } from "@typespec/compiler"; | ||
diagnostics: { | ||
"inconsistent-shared-route-request-visibility": { | ||
severity: "error", | ||
messages: { | ||
default: "All operations with `@sharedRoutes` must have the same `@requestVisibility`.", | ||
}, | ||
}, | ||
"invalid-server-variable": { | ||
@@ -68,0 +74,0 @@ severity: "error", |
{ | ||
"name": "@typespec/openapi3", | ||
"version": "0.48.0-dev.1", | ||
"version": "0.48.0-dev.2", | ||
"author": "Microsoft Corporation", | ||
@@ -5,0 +5,0 @@ "description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
190910
2648