zuke.tools.redocly
@zuke/redocly 1.0.0: @zuke/redocly — typed [Redocly CLI](https://redocly.com/docs/cli) task wrappers for Zuke builds.
zuke on PyPI ↗ 5 symbols
Symbols
class RedoclyBundleSettings(RedoclySettings) Settings for redocly bundle.
-
paths(*values: str) -> SelfThe API descriptions to bundle — paths or aliases from the config (positional); repeatable.
-
output(path: str) -> SelfWrite the bundle to this file or directory (
--output). -
dereferenced() -> SelfInline every
$refinstead of keeping the components (--dereferenced). -
ext(value: Literal['json', 'yaml', 'yml']) -> SelfThe output file extension,
json,yaml, oryml(--ext).
class RedoclyLintSettings(RedoclySettings) Settings for redocly lint.
-
paths(*values: str) -> SelfThe API descriptions to lint — paths or aliases from the config (positional); repeatable.
-
skip_rule(*rules: str) -> SelfSkip a rule for this run (
--skip-rule); repeatable. Use it for a rule the description cannot satisfy yet, so the rest of the ruleset still gates the build instead of the whole lint being turned off. -
format(value: Literal['codeframe', 'stylish', 'json', 'checkstyle', 'markdown', 'summary']) -> SelfSelect the output format (
--format).
class RedoclySettings(ToolSettings) Base for all redocly subcommand settings: the binary is redocly, with the --config option every subcommand accepts.
-
config(path: str) -> SelfUse an explicit config file (
--config) instead of the discoveredredocly.yaml.
class RedoclySplitSettings(RedoclySettings) Settings for redocly split.
-
api(path: str) -> SelfThe API description to split into a multi-file structure (positional; required).
-
out_dir(path: str) -> SelfThe directory the split files are written to (
--outDir; required). -
separator(value: str) -> SelfThe separator used in the generated path item file names (
--separator).
class RedoclyTasks Typed task functions for the redocly CLI.
-
static async lint(ctx: ServiceContext, configure: Callable[[RedoclyLintSettings], RedoclyLintSettings] | None=None) -> ExecResultLint API descriptions:
redocly lint. -
static async bundle(ctx: ServiceContext, configure: Callable[[RedoclyBundleSettings], RedoclyBundleSettings] | None=None) -> ExecResultBundle an API description into one file:
redocly bundle. -
static async split(ctx: ServiceContext, configure: Callable[[RedoclySplitSettings], RedoclySplitSettings] | None=None) -> ExecResultSplit an API description into a multi-file structure:
redocly split.