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

Prevent removing of (Required,Default) fields in HTTP PUT. Fixes #174 #206

Merged
merged 2 commits into from Nov 30, 2018

Conversation

Dragomir-Ivanov
Copy link
Contributor

No description provided.

rest/method_item_put_test.go Show resolved Hide resolved
rest/method_item_put_test.go Show resolved Hide resolved
rest/method_item_put_test.go Show resolved Hide resolved
schema/schema.go Show resolved Hide resolved
schema/schema.go Show resolved Hide resolved
Copy link
Collaborator

@smyrman smyrman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me; thanks for answering my question. I can buy into your arguments. Would you be able to add a small note about PUT in the main README, and how it works?

I suppose in particular that the original value of objects are kept on PUT requests if the field has a default value, or is read-only; all other fields are cleared. Is this the correct understanding btw?

@Dragomir-Ivanov
Copy link
Contributor Author

Done. Don't know if changed README as you imagined, but will fix :)
Merge conflicts are expected because my PRs touch adjustment blocks of text. Will fix.

Copy link
Collaborator

@smyrman smyrman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README updates looks good to me, with some minor comments. @rs - if you have any opinions regarding the final semantics, please let us know.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
rs
rs previously approved these changes Nov 29, 2018
@Dragomir-Ivanov
Copy link
Contributor Author

@smyrman Done.

smyrman
smyrman previously approved these changes Nov 29, 2018
@Dragomir-Ivanov
Copy link
Contributor Author

Conflict resolved.

README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@Dragomir-Ivanov
Copy link
Contributor Author

@smyrman Will do final squash when approved.

Copy link
Collaborator

@smyrman smyrman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As part of the squash, please fix the two very minor comments, and I will approve & merge :-)

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
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.

None yet

3 participants