zuke.tools.openapi_ts
@zuke/openapi-ts 1.0.1: @zuke/openapi-ts — typed openapi-ts task wrappers for Zuke builds.
zuke on PyPI ↗ 2 symbols
Symbols
class OpenapiTsGenerateSettings(ToolSettings) Settings for an openapi-ts generation run.
-
input(value: str) -> SelfOpenAPI specification to read — a file path or URL (
--input). -
output(value: str) -> SelfDirectory the generated client is written to (
--output). -
client(value: str) -> SelfHTTP client to generate for, e.g.
@hey-api/client-fetch(--client). -
file(value: str) -> SelfConfiguration file to load settings from (
--file). -
dry_run() -> SelfPrint the planned output without writing any files (
--dry-run). -
watch() -> SelfRegenerate on changes to the specification (
--watch). -
silent() -> SelfSuppress informational logging (
--silent).
class OpenapiTsTasks Typed task functions for the Hey API openapi-ts code generator.
-
static async generate(ctx: ServiceContext, configure: Callable[[OpenapiTsGenerateSettings], OpenapiTsGenerateSettings] | None=None) -> ExecResultGenerate a type-safe API client from an OpenAPI spec with
openapi-ts.