Skip to content

Commit

Permalink
Update ComponentBase.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Jan 9, 2025
1 parent db7fcbc commit f62fd91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/core/swarmauri_core/ComponentBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def model_dump_yaml(self, fields_to_exclude=None):
fields_to_exclude = []

# Load the JSON string into a Python dictionary
json_data = json.loads(self.json())
json_data = json.loads(self.model_dump_json())

# Function to recursively remove specific keys
def remove_fields(data, fields_to_exclude):
Expand Down

0 comments on commit f62fd91

Please sign in to comment.