This commit is contained in:
mah 2025-12-16 21:09:33 +00:00 committed by GitHub
commit 97d3bbf2c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -384,7 +384,10 @@ def _remap_definitions_and_field_mappings(
Dict[str, Any], Dict[str, Any],
]: ]:
old_name_to_new_name_map = {} old_name_to_new_name_map = {}
for field_key, schema in field_mapping.items(): for field_key, schema in sorted(
field_mapping.items(),
key=lambda x: model_name_map.get(x[0][0].type_, ""),
):
model = field_key[0].type_ model = field_key[0].type_
if model not in model_name_map or "$ref" not in schema: if model not in model_name_map or "$ref" not in schema:
continue continue