Repository navigation
Comparing changes
Open a pull request
base repository: go-openapi/jsonpointer
base: v1.0.1
head repository: go-openapi/jsonpointer
compare: v1.0.2
- 7 commits
- 23 files changed
- 4 contributors
Commits on Sep 11, 2026
-
build(deps): bump the development-dependencies group with 9 updates
Bumps the development-dependencies group with 9 updates: | Package | From | To | | --- | --- | --- | | [go-openapi/ci-workflows/.github/workflows/auto-merge.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/bump-release.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/codeql.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/contributors.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/go-test.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/scanner.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/release.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | | [go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml](https://github.com/go-openapi/ci-workflows) | `0.6.1` | `0.6.2` | Updates `go-openapi/ci-workflows/.github/workflows/auto-merge.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/bump-release.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/codeql.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/contributors.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/go-test.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/scanner.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/release.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) Updates `go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/go-openapi/ci-workflows/releases) - [Commits](go-openapi/ci-workflows@38ed6bf...cba06a2) --- updated-dependencies: - dependency-name: go-openapi/ci-workflows/.github/workflows/auto-merge.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/bump-release.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/codeql.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/contributors.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/go-test.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/scanner.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/release.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml dependency-version: 0.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
Configuration menu - View commit details
-
Copy full SHA for 506e5c8 - Browse repository at this point
Copy the full SHA 506e5c8View commit details
Commits on Sep 12, 2026
-
build(deps): bump github.com/go-openapi/testify/v2
Bumps the go-openapi-dependencies group with 1 update: [github.com/go-openapi/testify/v2](https://github.com/go-openapi/testify). Updates `github.com/go-openapi/testify/v2` from 2.7.0 to 2.8.0 - [Release notes](https://github.com/go-openapi/testify/releases) - [Commits](go-openapi/testify@v2.7.0...v2.8.0) --- updated-dependencies: - dependency-name: github.com/go-openapi/testify/v2 dependency-version: 2.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-openapi-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
Configuration menu - View commit details
-
Copy full SHA for 2109391 - Browse repository at this point
Copy the full SHA 2109391View commit details
Commits on Sep 24, 2026
-
fix: panics in Pointer.Get, Pointer.Set and json name resolution
Get and Set panicked on several ordinary document shapes. All are reachable from the public API with no privileges, so a consumer resolving pointers against attacker-influenced JSON could be crashed. Set with a nil value -- what encoding/json decodes a JSON null into -- called reflect.Value.Type on the zero Value in the struct and slice branches: reflect: call of reflect.Value.Type on zero Value A nil value now resolves to the zero value of the target when the target can hold nil, and reports an error wrapping ErrPointer when it cannot: a string field has no representation of null, and substituting "" would erase the difference. The map branch of setSingleImpl had no guard at all. reflect.Value.SetMapIndex panicked whenever the value was not assignable to the map value type, and deleted the member outright when handed the zero Value, so setting a map[string]any member to null silently removed it. The member is now kept with a nil value, and a mismatched type reports an error instead of panicking. jsonname.buildnameIndex recursed into anonymous fields without checking their kind, so embedding *Base panicked while building the name index under the default provider: reflect: NumField of non-struct type *main.Base The same panic hit the exported GetJSONNames for any non-struct subject. Anonymous fields are now reduced with structTypeOf: a pointer is dereferenced, and a field that is not a struct promotes nothing. newNameIndex and the three entry points tolerate a nil or non-struct subject, and GoNameProvider gets the same nil-subject guard. Fixing that alone only moved the crash: a field promoted through a nil embedded pointer then panicked in reflect.Value.FieldByName. The four call sites go through fieldByName, which uses reflect.Value.FieldByIndexErr and reports "cannot reach field". Maps keyed by a non-string type panicked in MapIndex and SetMapIndex, on Get as well as Set. Tokens are now converted against the map key type by mapKeyValue, which also makes map[NamedStringType]V resolve instead of panicking. A sweep of 4224 Get, Set, GetForToken and SetForToken calls over these shapes panics 0 times. The same sweep panics 483 times on master. The three copies of the nil-handling block are folded into resolveSetValue, which also clears the gocognit (44 > 30) and nestif reports that the first version of this branch introduced. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>Configuration menu - View commit details
-
Copy full SHA for c71171e - Browse repository at this point
Copy the full SHA c71171eView commit details -
docs: correct the agent instruction files
CLAUDE.md, .github/copilot-instructions.md and two files under .claude/rules described a repository that no longer exists, in ways that misdirect an agent reading them. Every claim below was checked against the code. Both instruction files said "single package". There are two: jsonpointer and jsonpointer/jsonname. They listed jsonname as the external dependency github.com/go-openapi/swag/jsonname; it is a subpackage of this repository, and go.mod has no non-test dependency. Their file tables omitted ifaces.go, options.go and both jsonname files, and their Get and Set signatures omitted opts ...Option. copilot-instructions.md claimed the RFC 6901 "-" array suffix is not implemented. Pointer.Set has supported it as an append since the dash token work; CLAUDE.md already said so. Both claimed "anonymous embedded struct fields are traversed only if tagged", which is backwards: an anonymous field is always walked for the fields it promotes, and its own json tag never becomes a reachable key. Both also stated the json-tag requirement unconditionally, when it only holds for the default NameProvider -- GoNameProvider reaches untagged exported fields. Neither file mentioned that two providers exist, which is the first thing to check when a field is unreachable. Dangling links are removed: docs/ holds only .gitkeep, so docs/MAINTAINERS.md and docs/STYLE.md do not exist, and neither do .claude/plans/ROADMAP.md or .github/CONTRIBUTING.md. contributions.md also told agents to run `go test work ./...`, which is not a command. Both files gain the behavior settled by the previous commit: embedded-pointer traversal, nil embedded pointers reporting an error, the string-keyed-map requirement, and null handling on Set. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for 280ae48 - Browse repository at this point
Copy the full SHA 280ae48View commit details -
Merge pull request #158 from fredbi/copilot/fix-nil-pointer-dereference
Copilot/fix nil pointer dereference
Configuration menu - View commit details
-
Copy full SHA for 8a1cae1 - Browse repository at this point
Copy the full SHA 8a1cae1View commit details -
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for 48d9a9a - Browse repository at this point
Copy the full SHA 48d9a9aView commit details -
chore: fix linting issue (redundant loop index copy)
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for d8e268c - Browse repository at this point
Copy the full SHA d8e268cView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.0.1...v1.0.2