-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Unmarshal subproblems from problem details #138
base: master
Are you sure you want to change the base?
Conversation
This PR (HEAD: fc07adf) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/233166 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/233166. |
Message from Mike Baynton: Patch Set 1: Looks like Roland and I both wrote patches for this at the same time. Adding Roland as a reviewer on mine. Looking at Roland's, they seem functionally about the same. Differences are I got a bit more liberal with reorganizing the Error/Problem types. This way what problem details look like is only described once, and there are types whose names directly correlate to RFC Problem Details / Subproblems. The downside is a tiny BC break in that by embedding ProblemDetails in Error, if someone was making their own acme.Error instances outside the package using struct literals, it would no longer compile (as seen in the modifications to types_test.go) I also added another not-unmarshaled field from RFC 7807, title. I don't think Boulder sets it but that's a bit Boulder-centric. (And I would love if someday it did! ;)) I did leave out subproblems when stringing Error but maybe we should. In practice it is rare for one order to generate tons of subproblems/a huge error string. Please don’t reply on this GitHub thread. Visit golang.org/cl/233166. |
Message from Roland Shoemaker: Patch Set 1: (4 comments) Happy to defer to your CL. I've left a few structural/content comments. Please don’t reply on this GitHub thread. Visit golang.org/cl/233166. |
Message from Mike Baynton: Patch Set 1: (4 comments)
Thanks for the review! And cool, I do appreciate the contribution opportunity. Pushing changes now. Please don’t reply on this GitHub thread. Visit golang.org/cl/233166. |
This PR (HEAD: 3a0a8e9) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/233166 to see it. Tip: You can toggle comments from me using the |
Message from Go Bot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/233166. |
Fixes golang/go#38978