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

Ignore unknown fields in API responses #10

Merged
merged 2 commits into from
Jul 15, 2020
Merged

Ignore unknown fields in API responses #10

merged 2 commits into from
Jul 15, 2020

Conversation

chezou
Copy link
Owner

@chezou chezou commented Jul 15, 2020

To avoid dataclass creation time error, this patch introduces
Resource.from_api_repr class method to ignore and warn unknown
fields in responses of REST API.

This change prevents to crach with future changes of digdag server
resources like #8.

To avoid dataclass creation time error, this patch introduces
``Resource.from_api_repr`` class method to ignore and warn unknown
fields in responses of REST API.

This change prevents to crach with future changes of digdag server
resources like #8.
@chezou chezou changed the title Ignore unknown fields in responses Ignore unknown fields in API responses Jul 15, 2020
@chezou chezou merged commit 09eaad5 into master Jul 15, 2020
@chezou chezou deleted the api-repr branch July 15, 2020 07:14
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.

1 participant