Rename require_crl_on_client_certificate to require_crl_on_client_cert#338
Rename require_crl_on_client_certificate to require_crl_on_client_cert#338Aravind Khasibhatla (akhasibhatla) wants to merge 1 commit intomasterfrom
Conversation
Shorten the field name for better CLI UX: - Go field: RequireCrlOnClientCertificate -> RequireCrlOnClientCert - JSON tag: require_crl_on_client_certificate -> require_crl_on_client_cert This aligns with CLI flag naming: --require-crl-on-client-cert Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR renames the Certificate Authority SDK model field and corresponding JSON property from require_crl_on_client_certificate to the shorter require_crl_on_client_cert to align with updated CLI flag naming and improve UX consistency.
Changes:
- Renamed Go struct field and helper methods from
RequireCrlOnClientCertificatetoRequireCrlOnClientCertin the CA models. - Updated JSON tags and
MarshalJSON()serialization keys torequire_crl_on_client_cert. - Updated
Redact()recursion calls to reference the renamed field.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| certificate-authority/v2/model_iam_v2_certificate_authority.go | Renames the response model field + helpers and updates JSON serialization key. |
| certificate-authority/v2/model_iam_v2_create_cert_request.go | Renames the create request field + helpers and updates JSON serialization key. |
| certificate-authority/v2/model_iam_v2_update_cert_request.go | Renames the update request field + helpers and updates JSON serialization key. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Kostya Linou (linouk23)
left a comment
There was a problem hiding this comment.
I don't think it's a good idea, as the naming needs to match API 1:1: https://github.com/confluentinc/api/blob/master/certificate-authority/minispec.yaml#L131
Kostya Linou (@linouk23) Fair point, please note Cynthia Qin (@cqin-confluent) will be helping us out here going forward. I was just getting started on this change. |
|
Sounds good! Let's make sure we follow https://confluentinc.atlassian.net/wiki/spaces/ADP/pages/2791867798/Adding+a+new+SDK+to+ccloud-sdk-go-v2-internal when making changes to this repository, as opposed to updating these files manually. |
|
We will no longer need this PR, and Cynthia Qin (@cqin-confluent) will take up updating confluentinc/cli#3274 |
Summary
RequireCrlOnClientCertificate->RequireCrlOnClientCertrequire_crl_on_client_certificate->require_crl_on_client_certFiles Modified
certificate-authority/v2/model_iam_v2_certificate_authority.gocertificate-authority/v2/model_iam_v2_create_cert_request.gocertificate-authority/v2/model_iam_v2_update_cert_request.goMotivation
The CLI flag
--require-crl-on-client-certwas shortened per review feedback. This SDK change aligns the JSON field name to be consistent.References
Verification
go vet -v output (click to expand)
🤖 Generated with Claude Code