Skip to main content

Module coerce

Module coerce 

Source
Expand description

Value coercion and naming (to_kebab, JSON Schema โ†’ CLI values, env:/file: secrets).

Functionsยง

apply_head
Truncate JSON arrays to first N elements; pass through other values.
coerce_value
Coerce a CLI string (or JSON value) according to a JSON Schema fragment.
resolve_secret
Resolve env:VAR or file:/path secret values.
to_kebab
Convert camelCase / snake_case names to kebab-case (Python to_kebab).