Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.45.0"
".": "0.45.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 104
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-20310988401243aa5c4a2e2ac6cba5dd90873fb7b83497a2d50c691352c0dd7b.yml
openapi_spec_hash: e19e650b4b2c8c8fde1f739c4aab6b33
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-403eadeddcd92ecf5c0ada739fb59d73d829a9b463788a81ac3ed97d0cd3a64b.yml
openapi_spec_hash: 8fdd3a5bd5e035f0adeb72329c215ad7
config_hash: 16e4457a0bb26e98a335a1c2a572290a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.45.1 (2026-04-01)

Full Changelog: [v0.45.0...v0.45.1](https://github.com/kernel/kernel-go-sdk/compare/v0.45.0...v0.45.1)

### Bug Fixes

* fix issue with unmarshaling in some cases ([6f721ac](https://github.com/kernel/kernel-go-sdk/commit/6f721ac3da13678eb476f8231617510e8f0b9e34))

## 0.45.0 (2026-03-30)

Full Changelog: [v0.44.0...v0.45.0](https://github.com/kernel/kernel-go-sdk/compare/v0.44.0...v0.45.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/kernel/kernel-go-sdk@v0.45.0'
go get -u 'github.com/kernel/kernel-go-sdk@v0.45.1'
```

<!-- x-release-please-end -->
Expand Down
6 changes: 3 additions & 3 deletions authconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ func (r AuthConnectionNewParams) MarshalJSON() (data []byte, err error) {
return shimjson.Marshal(r.ManagedAuthCreateRequest)
}
func (r *AuthConnectionNewParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.ManagedAuthCreateRequest)
return apijson.UnmarshalRoot(data, r)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Untagged fields silently ignored during JSON unmarshaling

High Severity

The UnmarshalJSON methods were changed from json.Unmarshal(data, &r.InnerField) to apijson.UnmarshalRoot(data, r), but the inner fields (e.g. ManagedAuthCreateRequest, CreateCredentialRequest, SubmitFieldsRequest, etc.) have no JSON struct tags. The apijson struct decoder explicitly skips fields without JSON tags, so these primary data fields will never be populated during unmarshaling. The MarshalJSON still serializes the inner field's contents directly, making marshal/unmarshal asymmetric — data serialized by MarshalJSON cannot be recovered by UnmarshalJSON.

Additional Locations (2)
Fix in Cursor Fix in Web

}

type AuthConnectionUpdateParams struct {
Expand All @@ -1092,7 +1092,7 @@ func (r AuthConnectionUpdateParams) MarshalJSON() (data []byte, err error) {
return shimjson.Marshal(r.ManagedAuthUpdateRequest)
}
func (r *AuthConnectionUpdateParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.ManagedAuthUpdateRequest)
return apijson.UnmarshalRoot(data, r)
}

type AuthConnectionListParams struct {
Expand Down Expand Up @@ -1161,5 +1161,5 @@ func (r AuthConnectionSubmitParams) MarshalJSON() (data []byte, err error) {
return shimjson.Marshal(r.SubmitFieldsRequest)
}
func (r *AuthConnectionSubmitParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.SubmitFieldsRequest)
return apijson.UnmarshalRoot(data, r)
}
5 changes: 2 additions & 3 deletions credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package kernel

import (
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
Expand Down Expand Up @@ -260,7 +259,7 @@ func (r CredentialNewParams) MarshalJSON() (data []byte, err error) {
return shimjson.Marshal(r.CreateCredentialRequest)
}
func (r *CredentialNewParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.CreateCredentialRequest)
return apijson.UnmarshalRoot(data, r)
}

type CredentialUpdateParams struct {
Expand All @@ -273,7 +272,7 @@ func (r CredentialUpdateParams) MarshalJSON() (data []byte, err error) {
return shimjson.Marshal(r.UpdateCredentialRequest)
}
func (r *CredentialUpdateParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.UpdateCredentialRequest)
return apijson.UnmarshalRoot(data, r)
}

type CredentialListParams struct {
Expand Down
5 changes: 2 additions & 3 deletions credentialprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package kernel

import (
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
Expand Down Expand Up @@ -323,7 +322,7 @@ func (r CredentialProviderNewParams) MarshalJSON() (data []byte, err error) {
return shimjson.Marshal(r.CreateCredentialProviderRequest)
}
func (r *CredentialProviderNewParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.CreateCredentialProviderRequest)
return apijson.UnmarshalRoot(data, r)
}

type CredentialProviderUpdateParams struct {
Expand All @@ -336,5 +335,5 @@ func (r CredentialProviderUpdateParams) MarshalJSON() (data []byte, err error) {
return shimjson.Marshal(r.UpdateCredentialProviderRequest)
}
func (r *CredentialProviderUpdateParams) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &r.UpdateCredentialProviderRequest)
return apijson.UnmarshalRoot(data, r)
}
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "0.45.0" // x-release-please-version
const PackageVersion = "0.45.1" // x-release-please-version
Loading