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/validate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.26.1
Choose a base ref
...
head repository: go-openapi/validate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.26.2
Choose a head ref
  • 15 commits
  • 44 files changed
  • 5 contributors

Commits on Jul 23, 2026

  1. tests: make schema fixtures deterministic (#273)

    * tests: wait for the local fixture server
    
    TestJSONSchemaSuite started the HTTP fixture server in a goroutine and immediately ran parallel tests, allowing clients to connect before the listener was ready. Create the listener synchronously and close the server during cleanup to remove the race.
    
    Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
    
    * tests: use the bundled Petstore example fixture
    
    The documentation examples should not depend on petstore.swagger.io. Load the
    repository fixture instead so the examples remain deterministic and work in
    offline build environments.
    
    Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
    
    * tests: use a context-aware fixture listener
    
    Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
    
    * docs: retain the URL loading example
    
    Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
    
    * docs: retain URL note in validator example
    
    Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
    
    ---------
    
    Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
    HNO3Miracle authored Jul 23, 2026
    Configuration menu
    Copy the full SHA
    7e0ebfa View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2026

  1. chore(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.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/bump-release.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/codeql.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/contributors.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/go-test.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/scanner.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/release.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    | [go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml](https://github.com/go-openapi/ci-workflows) | `0.4.0` | `0.4.2` |
    
    
    Updates `go-openapi/ci-workflows/.github/workflows/auto-merge.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/bump-release.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/codeql.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/contributors.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/go-test.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/scanner.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/release.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    Updates `go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml` from 0.4.0 to 0.4.2
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@af4c93f...2015397)
    
    ---
    updated-dependencies:
    - dependency-name: go-openapi/ci-workflows/.github/workflows/auto-merge.yml
      dependency-version: 0.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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 Jul 24, 2026
    Configuration menu
    Copy the full SHA
    770313b View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2026

  1. chore(deps): bump the go-openapi-dependencies group with 5 updates

    Bumps the go-openapi-dependencies group with 5 updates:
    
    | Package | From | To |
    | --- | --- | --- |
    | [github.com/go-openapi/swag/conv](https://github.com/go-openapi/swag) | `0.27.3` | `0.28.0` |
    | [github.com/go-openapi/swag/fileutils](https://github.com/go-openapi/swag) | `0.27.3` | `0.28.0` |
    | [github.com/go-openapi/swag/jsonutils](https://github.com/go-openapi/swag) | `0.27.3` | `0.28.0` |
    | [github.com/go-openapi/swag/loading](https://github.com/go-openapi/swag) | `0.27.3` | `0.28.0` |
    | [github.com/go-openapi/swag/stringutils](https://github.com/go-openapi/swag) | `0.27.3` | `0.28.0` |
    
    
    Updates `github.com/go-openapi/swag/conv` from 0.27.3 to 0.28.0
    - [Release notes](https://github.com/go-openapi/swag/releases)
    - [Commits](go-openapi/swag@v0.27.3...v0.28.0)
    
    Updates `github.com/go-openapi/swag/fileutils` from 0.27.3 to 0.28.0
    - [Release notes](https://github.com/go-openapi/swag/releases)
    - [Commits](go-openapi/swag@v0.27.3...v0.28.0)
    
    Updates `github.com/go-openapi/swag/jsonutils` from 0.27.3 to 0.28.0
    - [Release notes](https://github.com/go-openapi/swag/releases)
    - [Commits](go-openapi/swag@v0.27.3...v0.28.0)
    
    Updates `github.com/go-openapi/swag/loading` from 0.27.3 to 0.28.0
    - [Release notes](https://github.com/go-openapi/swag/releases)
    - [Commits](go-openapi/swag@v0.27.3...v0.28.0)
    
    Updates `github.com/go-openapi/swag/stringutils` from 0.27.3 to 0.28.0
    - [Release notes](https://github.com/go-openapi/swag/releases)
    - [Commits](go-openapi/swag@v0.27.3...v0.28.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/go-openapi/swag/conv
      dependency-version: 0.28.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: go-openapi-dependencies
    - dependency-name: github.com/go-openapi/swag/fileutils
      dependency-version: 0.28.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: go-openapi-dependencies
    - dependency-name: github.com/go-openapi/swag/jsonutils
      dependency-version: 0.28.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: go-openapi-dependencies
    - dependency-name: github.com/go-openapi/swag/loading
      dependency-version: 0.28.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: go-openapi-dependencies
    - dependency-name: github.com/go-openapi/swag/stringutils
      dependency-version: 0.28.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 Jul 31, 2026
    Configuration menu
    Copy the full SHA
    8322d28 View commit details
    Browse the repository at this point in the history
  2. chore(deps): bump go.yaml.in/yaml/v3 (#276)

    Bumps the other-dependencies group with 1 update in the / directory: [go.yaml.in/yaml/v3](https://github.com/yaml/go-yaml).
    
    
    Updates `go.yaml.in/yaml/v3` from 3.0.4 to 3.0.5
    - [Commits](yaml/go-yaml@v3.0.4...v3.0.5)
    
    ---
    updated-dependencies:
    - dependency-name: go.yaml.in/yaml/v3
      dependency-version: 3.0.5
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: other-dependencies
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 31, 2026
    Configuration menu
    Copy the full SHA
    af06d7e View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2026

  1. doc: updated contributors file

    Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    bot-go-openapi[bot] authored and github-actions[bot] committed Aug 1, 2026
    Configuration menu
    Copy the full SHA
    3d39244 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2026

  1. chore(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.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/bump-release.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/codeql.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/contributors.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/go-test.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/scanner.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/release.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    | [go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml](https://github.com/go-openapi/ci-workflows) | `0.4.2` | `0.4.3` |
    
    
    Updates `go-openapi/ci-workflows/.github/workflows/auto-merge.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/bump-release.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/codeql.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/contributors.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/go-test.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/scanner.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/release.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    Updates `go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml` from 0.4.2 to 0.4.3
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@2015397...befbc52)
    
    ---
    updated-dependencies:
    - dependency-name: go-openapi/ci-workflows/.github/workflows/auto-merge.yml
      dependency-version: 0.4.3
      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.4.3
      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.4.3
      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.4.3
      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.4.3
      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.4.3
      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.4.3
      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.4.3
      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.4.3
      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 Aug 7, 2026
    Configuration menu
    Copy the full SHA
    502a334 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2026

  1. fix: correct the locations reported by validation errors

    Locations were assembled by string concatenation, which lost information and
    produced notations no consumer could parse. They are now built from a list of
    JSON pointer reference tokens and rendered on demand, so a separator can never
    be confused with a token that contains one.
    
    Locations that change:
    
    - array items carry their index again: "a.b" becomes "a.0.b". The index was
      set on the schema validator after its sub-validators had been built, so it
      never reached the validator raising the error;
    - "items[0]" and "allOf[0]" become "items.0" and "allOf.0";
    - the "default" and "example" keywords are no longer appended twice;
    - a response is located by its operation rather than by a bare status code:
      "200.name.default" becomes "paths./pets/{id}.get.responses.200.name.default";
    - a required property missing at the root loses its leading separator:
      ".paths in body is required" becomes "paths in body is required".
    
    The predicates telling a schema apart from plain data (isProperties, isDefault,
    isExample) and the recursion guard on visited schemas walk tokens instead of
    splitting on dots, so they no longer match mid-token. Trailing indices are
    trimmed before the marker lookup: an element of an example is example data, and
    schema-only checks stay off it.
    
    Error names keep the dotted rendering, so messages returned by generated servers
    are unchanged apart from the locations listed above. The JSON pointer rendering
    is available internally; no API exposes it yet.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 8, 2026
    Configuration menu
    Copy the full SHA
    ffd3382 View commit details
    Browse the repository at this point in the history
  2. feat: report the JSON pointer of each validation error

    Result now knows where every error and warning it holds came from, and reports
    it as an RFC 6901 JSON pointer into the validated document:
    
        for _, e := range result.LocatedErrors() {
            fmt.Printf("%s: %v\n", e.Pointer, e.Err)
        }
    
        /definitions/Pet/name/default: ... must be of type string: "number"
        /paths/~1pets~1{id}/get/responses/200/examples/friends/0/name: ...
    
    Errors and Warnings keep their contents and their types, so nothing downstream
    has to change and no error value is wrapped. A pointer is empty when the check
    that failed has no single location to name, such as a duplicate operation id or
    a document that could not be read at all.
    
    Locations are held in slices kept in step with the error slices, and carried
    through merges, through the relevance filter and through the result pool. They
    are recorded by the validators themselves, so a location is as precise as the
    validator that reported the failure: the document-wide schema pass emits true
    document pointers, while a check that only knows a parameter by name reports
    the name.
    
    Two spec messages move as a result, both now naming the operation they belong
    to rather than the parameter or header alone:
    
    - "user.items in body has invalid pattern" becomes
      "paths./foo.get.parameters.user.items in body has invalid pattern";
    - "X-Foo in header has invalid pattern" becomes
      "paths./foo.get.responses.default.headers.X-Foo in header has invalid pattern".
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 8, 2026
    Configuration menu
    Copy the full SHA
    4c55223 View commit details
    Browse the repository at this point in the history
  3. feat: locate the $ref diagnostics in the document

    An invalid or dubious $ref now reports where it was declared:
    
        /definitions/Bad: invalid ref "file:///etc/passwd"
    
    Both checks iterate the analyzer's references, which are handed over as values
    only: its index is keyed by document location, but neither AllRefs nor
    AllReferences exposes the keys. The locations are recovered instead by walking
    the raw document for "$ref" members, which needs no interpretation of what a
    reference points to, and keeps the index in step with the unexpanded spec the
    two checks are meant to inspect.
    
    The index is best effort. Example subtrees are skipped, since a "$ref" member
    there is plain data rather than a declaration, and a reference declared more
    than once keeps the smallest pointer so the answer does not depend on map
    iteration order. A miss costs a misleading or empty pointer, never a wrong
    verdict: nothing else is decided from it.
    
    Diagnostics that no single location can describe still report an empty
    pointer, a spread of remote hosts and a duplicate operation id among them.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 8, 2026
    Configuration menu
    Copy the full SHA
    97d6cca View commit details
    Browse the repository at this point in the history
  4. fix: do not read $ref declarations out of default values

    A default is a value, so a "$ref" member sitting in one declares nothing and
    must not be taken for the location of a reference, the same way example values
    are already skipped.
    
    The exception is "default" under "responses", which names a response rather
    than holding a value, and is commonly a $ref to a shared response. That one
    keeps being indexed, both at the document level and under an operation.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 8, 2026
    Configuration menu
    Copy the full SHA
    db6c34d View commit details
    Browse the repository at this point in the history
  5. refact: take $ref locations from the analyzer

    analysis v0.26.0 exposes AllRefsByLocation, so the reference index no longer
    has to be rebuilt here by walking the raw document. Inverting the analyzer's
    map replaces that walk, halving the file.
    
    The guesswork goes with it. Deciding whether a "$ref" member was a declaration
    or a value meant knowing example and default subtrees hold data, with an
    exception for a default that names a response; the analyzer indexes
    declarations only, so none of that has to be restated.
    
    Locations and the two diagnostics now read the same index, which makes every
    reference they can report one the index knows where to find. A $ref sitting
    directly on a shared parameter or shared response is indexed by neither, so
    nothing that used to be located has stopped being so.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 8, 2026
    Configuration menu
    Copy the full SHA
    324f434 View commit details
    Browse the repository at this point in the history
  6. feat: point required-property findings at the offending entry

    A required property that is never defined, and one marked both required and
    readOnly, now report the entry of the required array they come from rather
    than the definition holding it:
    
        /definitions/Pet/required/1: "notDeclared" is present in required but not
        defined as property in definition "Pet"
    
    That is the text a reader has to go and amend, so it is what a consumer
    tracking positions in the document wants to anchor on.
    
    The search for the property descends into additionalProperties schemas, so the
    two locations are carried apart: the schema being searched moves down, while
    the required entry that started the search stays put.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 8, 2026
    Configuration menu
    Copy the full SHA
    9b2c746 View commit details
    Browse the repository at this point in the history
  7. fix: locate parameters by the index the document addresses them at

    A parameter was reported at its name, which no document can address: they are
    held in an array. Over the fixture specs, that left most pointers unresolvable
    and made a consumer walk up to the array before finding anything.
    
    Parameters are now indexed from the unexpanded document, which is the only
    place the index survives: expansion merges the parameters an operation declares
    with those of its path item, and resolves the ones written as a $ref. The
    lookup falls back to the path item, so a parameter declared once for every
    operation under a path is found from any of them.
    
    Messages keep naming the parameter. A path token now carries a readable form
    beside the addressed one, so the pointer indexes while the message reads as it
    did:
    
        /paths/~1pets/get/parameters/1     paths./pets.get.parameters.tags
    
    A parameter too broken to be identified, one with no name, has no index to
    point at; the name stands in, as before.
    
    One message moves, and it is a correction: a parameter declared on a path item
    is no longer reported under an operation that did not declare it.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 8, 2026
    Configuration menu
    Copy the full SHA
    8512f1a View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2026

  1. fix: point at nodes a document actually contains

    Two classes of pointer addressed nothing, so a consumer had to walk up before
    finding anything to show.
    
    A finding about something absent is now reported on the value that should hold
    it: a missing required property points at the object, not at the property that
    is not there. At the root that is the empty pointer, which addresses the whole
    document, and Located.Pointer says so rather than calling it unknown.
    
    Tokens a document needs to address a value, but that a message has never
    spelled, are marked structural: part of the pointer, absent from the dotted
    form. That puts "properties" between a schema and its members, "schema" under
    a response, and the media type under its examples:
    
        /definitions/Pet/properties/name/default
        definitions.Pet.name.default
    
    The predicates telling a schema apart from plain data skip structural tokens.
    They ask what a value is, and plumbing must not answer: an example addressed
    through its media type is still an example.
    
    Not covered, and left as it stands: a parameter or response written as a $ref
    is located where it is declared, so anything below that site resolves in the
    shared definition rather than there.
    
    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi and claude committed Aug 9, 2026
    Configuration menu
    Copy the full SHA
    db68410 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #279 from fredbi/fix/error-location-as-jsonpointer

    Fix/error location as jsonpointer
    fredbi authored Aug 9, 2026
    Configuration menu
    Copy the full SHA
    83d7d4e View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址