loader
Class info¶
🛈 DocStrings¶
OpenAPI spec loading and parsing utilities.
load_openapi_spec
¶
Load and fully dereference an OpenAPI spec.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url_or_path
|
JoinablePathLike
|
URL or path to the OpenAPI spec. |
required |
timeout
|
float
|
HTTP timeout for fetching. |
30.0
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Fully dereferenced OpenAPI spec. |
Source code in src/schemez/openapi/loader.py
parse_operations
¶
Parse OpenAPI paths into operation configurations.