Skip to content

feat: Go SDK update for version v7.10.0 - #85

Closed
ChiragAgg5k wants to merge 2 commits into
mainfrom
dev
Closed

ChiragAgg5k wants to merge 2 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

This PR contains updates to the Go SDK for version v7.10.0.

@hansi-codes

hansi-codes Bot commented Oct 12, 2026

Copy link
Copy Markdown

🔵 Tier A · Mergeable after minor fixes

The defaulting behavior is not directly covered by the model tests, so the default literals could regress unnoticed.

This update adds passkey APIs and models, passkey and password-rotation policies, Android certificate fingerprints, and an optional membership ID. It also adds spec-default unmarshalling to response models and bumps the Go SDK version to v7.10.0.

221 of 351 changed files were too large to include in full.

Verdict New comments Fixed Still open
💬 Commented 1 0 0

Note

Part of the diff was too large to review, so Hansi did not approve.

Finding Where
🟡 Test sparse responses against the seeded defaults models/account.go:77
Fix with agent prompt
### Issue 1
models/account.go:77-80
**Test sparse responses against the seeded defaults**

The model tests round-trip fully populated values, but do not exercise an object with omitted fields through this new defaulting path. A missing or incorrect entry in these generated defaults would therefore go unnoticed while returning the wrong model value; please add a sparse-response assertion for the new behavior.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
📂 Walkthrough · 5
File Change
account/account.go, users/users.go Add passkey registration, sign-in, and management endpoints.
project/project.go, teams/teams.go Add passkey/password-rotation policy operations, Android fingerprints, and membership IDs.
models/*.go Add passkey and password-rotation models and seed model fields with spec defaults during JSON decoding.
account/account_test.go, project/project_test.go, users/users_test.go, models/*_test.go Add coverage for the new SDK endpoints and models.
docs/examples/**/*.md, CHANGELOG.md, client/client.go Document new operations and update the release notes and SDK version headers.

Reviewed 8af38ff · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · See the inline comments. Summary

Comment thread models/account.go
Comment on lines +77 to +80
if err := json.Unmarshal([]byte("{\"$id\":\"\",\"$createdAt\":\"\",\"$updatedAt\":\"\",\"name\":\"\",\"registration\":\"\",\"status\":true,\"labels\":[],\"passwordUpdate\":\"\",\"email\":\"\",\"phone\":\"\",\"emailVerification\":false,\"phoneVerification\":false,\"mfa\":false,\"accessedAt\":\"\"}"), &fields); err != nil {
return err
}
if err := json.Unmarshal(data, &fields); err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Test sparse responses against the seeded defaults

The model tests round-trip fully populated values, but do not exercise an object with omitted fields through this new defaulting path. A missing or incorrect entry in these generated defaults would therefore go unnoticed while returning the wrong model value; please add a sparse-response assertion for the new behavior.

Prompt To Fix With AI
This is a comment left during a code review.
Path: models/account.go
Line: 77-80

Comment:
**Test sparse responses against the seeded defaults**

The model tests round-trip fully populated values, but do not exercise an object with omitted fields through this new defaulting path. A missing or incorrect entry in these generated defaults would therefore go unnoticed while returning the wrong model value; please add a sparse-response assertion for the new behavior.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟡 Minor · testing · Reply if this doesn't apply.

@ChiragAgg5k

Copy link
Copy Markdown
Member Author

Superseded: replaced by a passkeys-only minor release.

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.

1 participant