Skip to content

Commit a94babb

Browse files
committed
fix: regenrate src/catalog_openapi/ and patch generated FilterOptionsList.to_dict() for nested dict serialization
Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com> AI-assisted: Claude Code (Opus 4.6)
1 parent b84ea22 commit a94babb

53 files changed

Lines changed: 2711 additions & 1521 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- a/catalog/clients/python/src/catalog_openapi/models/filter_options_list.py
2+
+++ b/catalog/clients/python/src/catalog_openapi/models/filter_options_list.py
3+
@@ -81,7 +81,10 @@
4+
# override the default output from pydantic by calling `to_dict()` of each value in named_queries (dict)
5+
_field_dict = {}
6+
if self.named_queries:
7+
for _key_named_queries in self.named_queries:
8+
if self.named_queries[_key_named_queries]:
9+
- _field_dict[_key_named_queries] = self.named_queries[_key_named_queries].to_dict()
10+
+ _field_dict[_key_named_queries] = {
11+
+ _ik: _iv.to_dict() if hasattr(_iv, 'to_dict') else _iv
12+
+ for _ik, _iv in self.named_queries[_key_named_queries].items()
13+
+ }
14+
_dict['namedQueries'] = _field_dict

catalog/clients/python/src/catalog_openapi/__init__.py

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# flake8: noqa
22

33
# import apis into api package
4+
from catalog_openapi.api.mcp_catalog_service_api import MCPCatalogServiceApi
45
from catalog_openapi.api.model_catalog_service_api import ModelCatalogServiceApi
56

catalog/clients/python/src/catalog_openapi/api/mcp_catalog_service_api.py

Lines changed: 20 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)