Add OpenStack request-body schemas and nested console PARAM sync.

This commit is contained in:
2026-07-18 08:47:16 +03:00
parent 6033967e6a
commit 2a8ce3a287
101 changed files with 150428 additions and 612 deletions
+6 -1
View File
@@ -190,11 +190,16 @@ def register_openstack_contract_routes(
full_path = f"/_os/{pack.name}{path}"
name = f"{_ROUTE_NAME_PREFIX}{pack.name}:{op.method}:{op.path}"
endpoint = _make_contract_endpoint(pack, op, handlers, dispatch_fn)
# FastAPI only auto-adds HEAD for @app.get(); contract routes use
# add_api_route — register HEAD beside every GET for the matrix.
methods = [op.method]
if op.method.upper() == "GET":
methods.append("HEAD")
app.add_api_route(
full_path,
endpoint,
methods=[op.method],
methods=methods,
name=name,
include_in_schema=True,
tags=[service_openapi_tag(pack.name)],