openstack/codegenerator · Week of 2026-07-25

openstack/codegenerator — 2026-07-25

10 merges · 2 contributors · 2730 lines changed

OpenAPI internals restructuring. The bulk of the week's churn went into breaking up openapi/base.py into focused modules, with helpers like Unset, QueryParamsSchema, VERSION_RE, and get_response_codes extracted into their own homes (review). Alongside the split, get_resource_names_from_url was rewritten into a data-driven form, and TypeManager.set_models had its name-collision resolution factored out — together roughly 1,600 lines reshuffled across the OpenAPI layer without changing external behavior.

Versioning support. Several changes push microversion handling further through the pipeline: the SDK generator now begins populating max_version, api_ver is populated from operation-level x-openstack.min-ver, and a new guard rejects silent type changes in versioned query params rather than letting them pass through unnoticed.

Fixes and cleanup. The TUI generator now streams paginated list responses via iter_async instead of collecting them, an obsolete openapi-core update workaround was dropped, and a stale comment in setup.py was removed.