Skip to main content Module cli Copy item path Source CliConfig Configuration for the CLI helper MAX_REMOTE_SPEC_BYTES Maximum accepted size for a remotely fetched OpenAPI document (64 MiB). REMOTE_SPEC_TIMEOUT End-to-end timeout for fetching a remote OpenAPI document. is_remote_spec Whether an input string names a supported remote OpenAPI source. json_from_str_lossy Parse JSON with lossy number handling: numbers that overflow i64/u64 are stored as f64. load_spec Load a local or remote OpenAPI document with bounded remote I/O. parse_oas_version Parse the openapi version string into (major, minor). Tolerates patch and
build-metadata suffixes. Returns None for unrecognised input. parse_spec run_generation_cli Deprecated Run the legacy embedded generation CLI with the provided configuration. sanitize_source_provenance Remove URL credentials, query strings, and fragments before recording a
source label in generated code. Local paths are retained as supplied. validate_remote_spec_url Parse and enforce the remote-source transport policy. yaml_to_json_value Parse YAML to serde_json::Value, converting large numbers to f64 to avoid overflow.
serde_yaml 0.9 cannot represent integers exceeding i64/u64 range (e.g. numbers > 2^64),
so we preprocess the YAML to convert such numbers to float notation, then go through
serde_yaml::Value and convert to serde_json::Value manually.