zuke.tools.orval
@zuke/orval 1.0.1: @zuke/orval — typed orval task wrappers for Zuke builds.
zuke on PyPI ↗ 2 symbols
Symbols
class OrvalGenerateSettings(ToolSettings) Settings for an orval generation run.
-
config(value: str) -> SelfConfiguration file to load settings from (
-c/--config). -
project(value: str) -> SelfRun only the named project from the config (
-p/--project). -
input(value: str) -> SelfOpenAPI specification to read — a file path or URL (
-i/--input). -
output(value: str) -> SelfDirectory the generated client is written to (
-o/--output). -
watch() -> SelfRegenerate on changes to the specification (
-w/--watch). -
clean() -> SelfRemove previously generated files before writing (
--clean). -
prettier() -> SelfFormat the generated output with Prettier (
--prettier). -
biome() -> SelfFormat the generated output with Biome (
--biome). -
mock() -> SelfGenerate mocks alongside the client (
--mock).
class OrvalTasks Typed task functions for the orval OpenAPI client and mock generator.
-
static async generate(ctx: ServiceContext, configure: Callable[[OrvalGenerateSettings], OrvalGenerateSettings] | None=None) -> ExecResultGenerate a TypeScript API client and mocks from an OpenAPI spec with
orval.