feat: add message param and error responses to createTicket#632
feat: add message param and error responses to createTicket#632
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The message parameter was being sent as a query parameter, which leaks potentially sensitive content in URLs and server logs. Move it to the POST request body by updating the OpenAPI spec and regenerating the Go client. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The 401 and 422 response types were not deserializing the error body, dropping the structured error payload. Add error schema references in the swagger spec and regenerate so the response types expose Payload *models.Error and consume the response body. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for open-api ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
📝 WalkthroughSummary by CodeRabbitRelease Notes
WalkthroughThis pull request adds request body support and error response handling to the POST /oauth/tickets endpoint. A new Go model CreateTicketParamsBody is introduced containing a Message field. The CreateTicketParams operation is updated with a Body field and supporting methods (WithBody, SetBody) to handle request bodies. Response processing is extended to handle 401 (Unauthorized) and 422 (Unprocessable Entity) error cases with dedicated response types. The API version is incremented from 2.50.0 to 2.51.0 in package manifests and the OpenAPI specification is updated to document the request body schema and new error responses. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
🤖 I have created a release *beep* *boop* --- ## [2.51.0](v2.50.0...v2.51.0) (2026-03-11) ### Features * add message param and error responses to createTicket ([#630](#630)) ([6c485a0](6c485a0)) * add message param and error responses to createTicket ([#632](#632)) ([4b3a79a](4b3a79a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
Summary
messageparameter to thecreateTicketendpoint request body for OAuth ticket creationcreateTicketTest plan
npm test— lint, build, unit tests)createTicketendpoint acceptsmessagein request body🤖 Generated with Claude Code