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: v0.23.2
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: v0.24.0
Choose a head ref
  • 17 commits
  • 20 files changed
  • 3 contributors

Commits on Jun 29, 2026

  1. refact loading, jsonutils, yamlutils utililities

    Follow-up on refactoring the swag API as more granular packages,
    and deprecating the vast API currently exposed by swag.
    
    All existing methods are maintained and work.
    
    Existing configuration using global vars will continue to work at the
    "swag" level: sub-packages no longer expose global variables.
    
    Smaller packages will help maintain this very diverse set of features.
    
    This API separates:
    * loading : file loading utilities
    * jsonutils, yamlutils: JSON & YAML document conversions
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    7a32044 View commit details
    Browse the repository at this point in the history
  2. refact: refactored the package into multiple specialized sub-packages

    This clarifies the dependencies between the various utilities exposed by
    this package.
    
    Ultimately (not in this PR), we may convert some of the sub-packages
    into go modules, so as to isolate dependencies and allow users of
    some of the features not to be polluted by cross-dependencies.
    
    * refactored mangling to remove package state
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    1e343ce View commit details
    Browse the repository at this point in the history
  3. split packages as modules

    This PR transforms the "swag" package into a mono repo,
    which exposes a collection of independant go modules.
    
    The objective is to reduce the footprint of required dependencies.
    
    To remain fully backward-compatible, the swag module imports all
    the newly created (sub) modules, for programs that consume its
    deprecated API.
    
    ci: ci automation, test coverage reporting and dependabot configuration have been adapted to support
    this new mono-repo structure.
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    c8ef8a2 View commit details
    Browse the repository at this point in the history
  4. chore(ci): setup monorepo linting and fixed automerge

    Linting
    -------
    
    * lint: updated linter config
    * lint; golangci-lint no longer digs into sub-modules: we have
      to run the action explicitly with "working-directory"
    * setup a matrix of submodules to lint all modules in this repo
    * lint: relinted code
    
    Auto-merging
    -------
    
    * ci(auto-merge): the issue with golang.org updates auto-merge rule
      is caused by the name of the group "golang.org-dependencies"
      is internally rewritten as a slug name "golang-org-dependencies"
      (with a dash, not a dot) so this no longer matches the triggering
      rules.
    * ci(auto-merge): fixed the group name to replace "." by "-"
      (note: this fix should be propagated to all go-openapi repositories).
    
    Mono-repo settings
    -------
    
    * hack: modified the tagging utility to support future modules declared
      at an arbitrary level in the hierarchy of folders.
    * ci: introduced a new job to identify all sub-modules and produces the
      corresponding matrix for linting & testing each one independently.
    * ci: introduced rendez-vous jobs for linting and testing so we can
      use only these two in branch protection rule requirements
    
    Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    e7dc017 View commit details
    Browse the repository at this point in the history
  5. Remove dependency to mailru/easyjson by default

    We want to remove this dependency by default, while still providing support to users who want to use easyjson.
    
    * fixes #68
    
    This PR introduces an adapter to use ReadJSON and WriteJSON with
    different supporting libraries. By default only the standard library
    is enabled. A simple runtime registration allows the adapter to
    support easyjson.
    
    When import swag or swag/jsonutils or swag/yamlutils, easyjson is no longer a dependency:
    JSON serialization only requires the standard library.
    
    Supporting easyjson interfaces (e.g. for faster serialization) remains possible, by calling an independent module: swag/jsonutils/adapters/easyjson/json.Register().
    
    1. ordered map w/stdlib
    2. registry with stdlib as default
    3. fixed int vs float64 rendering
    4. beefed up tests, including integration tests
    5. honed doc
    6. more tests
    
    TODO:
    * [x] hone test coverage
    * benchmarks
    * profiling
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    3807d86 View commit details
    Browse the repository at this point in the history
  6. chore: improved mono-repo management

    This PR prepares the forthcoming release. We need to tidy up a little
    bit the way the mono-repo setup is handled.
    
    This starts by embracing `go.work`.
    
    Content
    =======
    
    * added go.work declaration
    * ci: adapted go tests to go.work. This should dramatically reduce the
      number of test jobs. At this moment, we still lint go modules in
      independent jobs.
    * ci: fixed issue with go mod caching
    * fix: dependabot not being able to update nested modules
    * updated stretchr/testify dependency (because dependabot didn't succeed
      doing so previously)
    * removed replace directives from top-level module. We still to keep the
      replace directives in sub-modules. These will disappear when we cut
      the next release.
    * doc (updated TODO items list)
    
    adapter tagger script to go.work
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    3eee415 View commit details
    Browse the repository at this point in the history
  7. chore: removed most remaining external dependencies

    * switch to forked testify (go-openapi/testify/v2) which no longer
      imports external dependencies
    * all test dependencies now boil down to go-openapi/testify/v2
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    7653690 View commit details
    Browse the repository at this point in the history
  8. licensing: modernized the licensing of source code.

    This commit replaces the full license terms in each go source file
    by the more compact SPDX annotations (i.e. 2 lines instead of 13).
    
    All go files now embed these summarized licensing terms.
    
    Also:
    * license is now cited in README
    
    Aside:
    * fixed sample code in README on how to register an adapter
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    763de45 View commit details
    Browse the repository at this point in the history
  9. lint: fix modernize issues

    Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
    alexandear authored and fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    9d139a2 View commit details
    Browse the repository at this point in the history
  10. test: upgraded to go-openapi/testify@v2.3.0 (#175)

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    c86da87 View commit details
    Browse the repository at this point in the history
  11. test: upgraded tests to use generics (#176)

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    1106664 View commit details
    Browse the repository at this point in the history
  12. build(deps): bump the go-openapi-dependencies group across 15 directo…

    …ries with 2 updates
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    e8f76b3 View commit details
    Browse the repository at this point in the history
  13. feat(jsonname): added new json name provider more respectful of go co…

    …nventions for JSON (#195)
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    d138cf8 View commit details
    Browse the repository at this point in the history
  14. build(deps): bump the go-openapi-dependencies group across 15 directo…

    …ries with 2 updates
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    5667aac View commit details
    Browse the repository at this point in the history
  15. chore: wired the local jsonname package & relinted

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Jun 29, 2026
    Configuration menu
    Copy the full SHA
    ae73433 View commit details
    Browse the repository at this point in the history
  16. Merge pull request #141 from fredbi/import/jsonname

    Import/jsonname
    fredbi authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    3663b09 View commit details
    Browse the repository at this point in the history
  17. doc: announced dependencies reshuffle for v0.24.0 (#142)

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    933d263 View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址