Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-openapi/jsonpointer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.1
Choose a base ref
...
head repository: go-openapi/jsonpointer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.2
Choose a head ref
  • 7 commits
  • 23 files changed
  • 4 contributors

Commits on Sep 11, 2026

  1. 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>
    dependabot[bot] authored and github-actions[bot] committed Sep 11, 2026
    Configuration menu
    Copy the full SHA
    506e5c8 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2026

  1. 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>
    dependabot[bot] authored and github-actions[bot] committed Sep 12, 2026
    Configuration menu
    Copy the full SHA
    2109391 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2026

  1. 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>
    3 people committed Sep 24, 2026
    Configuration menu
    Copy the full SHA
    c71171e View commit details
    Browse the repository at this point in the history
  2. 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>
    fredbi and claude committed Sep 24, 2026
    Configuration menu
    Copy the full SHA
    280ae48 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #158 from fredbi/copilot/fix-nil-pointer-dereference

    Copilot/fix nil pointer dereference
    fredbi authored Sep 24, 2026
    Configuration menu
    Copy the full SHA
    8a1cae1 View commit details
    Browse the repository at this point in the history
  4. chore: linting config

    Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
    fredbi committed Sep 24, 2026
    Configuration menu
    Copy the full SHA
    48d9a9a View commit details
    Browse the repository at this point in the history
  5. chore: fix linting issue (redundant loop index copy)

    Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
    fredbi committed Sep 24, 2026
    Configuration menu
    Copy the full SHA
    d8e268c View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址