Kind: Function
Source: atloria-monorepo/libs/parser-core/src/openapi/sdk-generator.ts
Generate the full sdk.ts source for a spec.
Signature
tsfunction generateTypeScriptSdk(spec: {
info?: { title?: string; version?: string };
servers?: Array<{ url?: string }>;
paths?: Record<string, Record<string, OpenApiOperation>>;
components?: { schemas?: Record<string, JsonSchema> };
}): string
Parameters
| Name | Type |
|---|---|
spec | `{ |
| info?: { title?: string; version?: string }; | |
| servers?: Array<{ url?: string }>; | |
| paths?: Record<string, Record<string, OpenApiOperation>>; | |
| components?: { schemas?: Record<string, JsonSchema> }; | |
| }` |
Returns: string
Was this page helpful?