@typespec/openapi3
Version:
TypeSpec library for emitting OpenAPI 3.0 and OpenAPI 3.1 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec
19 lines • 731 B
TypeScript
import { type Operation, type Program } from "@typespec/compiler";
import { OperationIdStrategy } from "../lib.js";
export interface OperationIdResolverOptions {
strategy: OperationIdStrategy;
separator?: string;
}
export declare class OperationIdResolver {
#private;
constructor(program: Program, options: OperationIdResolverOptions);
/**
* Resolve the OpenAPI operation ID for the given operation using the following logic:
* - If `@operationId` was specified use that value
* - Otherwise follow the {@link OperationIdStrategy}
*
* This will deduplicate operation ids
*/
resolve(operation: Operation): string | undefined;
}
//# sourceMappingURL=operation-id-resolver.d.ts.map