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

Update delete action behavior and JSON format output #1155

Merged
merged 8 commits into from
Apr 27, 2021
Merged

Conversation

jefferai
Copy link
Member

This PR changes delete behavior:

  • On success, a 204 is returned rather than a 200 with an empty JSON object
  • The CLI now passes through the 404 error if encountered instead of swallowing it

It also updates formatting for JSON to use the response body, which means that the item (or items) in the JSON format are actually the format across the wire, instead of being reinterpreted by unmarshaling into the Go SDK and then remarshaling.

jimlambrt
jimlambrt previously approved these changes Apr 23, 2021
Copy link
Collaborator

@jimlambrt jimlambrt left a comment

Choose a reason for hiding this comment

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

Looks great!

@jefferai jefferai merged commit 4690225 into main Apr 27, 2021
@jefferai jefferai deleted the ICU-1306 branch April 27, 2021 00:38
hugoghx pushed a commit that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants