Skip to content

Commit

Permalink
Log schema merge warning when key would be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmackaij committed Apr 18, 2024
1 parent 292724a commit f0774f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenApiLibCore/dto_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def merge_schemas(first: Dict[str, Any], second: Dict[str, Any]) -> Dict[str, An
elif isinstance(value, list):
# if the key holds a list, extend the values (e.g. 'required')
merged_schema[key].extend(value)
else:
logger.debug(
elif value != merged_schema[key]:
logger.warning(
f"key '{key}' with value '{merged_schema[key]}' not "
f"updated to '{value}'"
)
Expand Down

0 comments on commit f0774f2

Please sign in to comment.