Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle addition/removal of fields gracefully #46

Merged
merged 3 commits into from
Jun 26, 2024
Merged

Conversation

sv
Copy link
Collaborator

@sv sv commented Jun 26, 2024

File "/usr/local/lib/python3.11/site-packages/paradex_py/api/api_client.py", line 381, in fetch_system_config
    config = SystemConfigSchema().load(res)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/marshmallow_dataclass/__init__.py", line 910, in load
    all_loaded = super().load(data, many=many, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/marshmallow/schema.py", line 722, in load
    return self._do_load(
           ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/marshmallow/schema.py", line 909, in _do_load
    raise exc
marshmallow.exceptions.ValidationError: {'environment': ['Unknown field.'], 'universal_deployer_address': ['Unknown field.']}

@sv sv merged commit 182998d into main Jun 26, 2024
8 checks passed
@sv sv deleted the sv/not-strict-loading branch June 26, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants