Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add unrecognizedFields to Task#1616

Closed
regbo wants to merge 2 commits into
docker-java:masterdocker-java/docker-java:masterfrom
regbo:masterregbo/docker-java:masterCopy head branch name to clipboard
Closed

Add unrecognizedFields to Task#1616
regbo wants to merge 2 commits into
docker-java:masterdocker-java/docker-java:masterfrom
regbo:masterregbo/docker-java:masterCopy head branch name to clipboard

Conversation

@regbo

@regbo regbo commented Apr 22, 2021

Copy link
Copy Markdown

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

bsideup commented Apr 22, 2021

Copy link
Copy Markdown
Member

@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

bsideup commented May 27, 2021

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.