Skip to content

Add unrecognizedFields to Task#1616

Closed
regbo wants to merge 2 commits intodocker-java:masterfrom
regbo:master
Closed

Add unrecognizedFields to Task#1616
regbo wants to merge 2 commits intodocker-java:masterfrom
regbo:master

Conversation

@regbo
Copy link
Copy Markdown

@regbo regbo commented Apr 22, 2021

It looks like the task class does not contain the NetworksAttachments field.

As a stop gap, wouldn't it make sense for all models to implement the unrecognizedFields logic below? That way if the Docker API changes the content will be captured?

Add unrecognizedFields
@bsideup
Copy link
Copy Markdown
Member

bsideup commented Apr 22, 2021

@regbo thanks! That's something I wanted to do for a long time.

We definitely should add it to every model. Perhaps we should even add a common parent class (e.g. ApiResponse or something like that).

Could you please do it as part of this PR?

@bsideup
Copy link
Copy Markdown
Member

bsideup commented May 27, 2021

Superseeded by #1635.

Thanks for the idea, @regbo!

@bsideup bsideup closed this May 27, 2021
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