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/spec
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.22.11
Choose a base ref
...
head repository: go-openapi/spec
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.0
Choose a head ref
  • 4 commits
  • 14 files changed
  • 4 contributors

Commits on Aug 25, 2026

  1. fix(spec): keep zero-valued bounds through a gob round-trip (#310)

    gob omits any struct field holding the zero value for its type, and
    flattens a pointer to the value it points at. An optional number that is
    present and zero travelled as the zero value, was omitted, and came back
    as a nil pointer: "minimum": 0 on a schema, "maximum": 0 on a parameter
    and every other bound spelled with a zero were dropped, with no error.
    Encoding a whole Swagger lost them at any depth, through the encoder this
    package already advertises.
    
    Schema, Parameter, Header and Items now send which of their optional
    numbers were present-and-zero as a bitmask alongside the struct, and put
    the zero back on decode. The encoders sit on those outer types rather
    than on CommonValidations or SchemaProps because a method on an embedded
    type is promoted to whatever embeds it: gob would call it for the whole
    value and drop everything the embedded type does not hold. Swagger and
    Operation already carry their own encoders for that reason.
    
    TestGob_EveryOptionalNumberIsCarried reads the *float64 and *int64
    fields of those four types by reflection, so a bound added later is
    covered without editing the test, and fails until gob.go carries it.
    
    Round-tripping a mid-sized document through gob costs 153ms and 92MB
    against 47ms and 26MB before this change, because a GobEncode that
    returns bytes needs its own encoder per value. JSON round-trips the same
    document in 39ms and 12MB, so gob is the slower way to copy this model
    either way.
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
    fredbi and claude authored Aug 25, 2026
    Configuration menu
    Copy the full SHA
    f0e1e04 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2026

  1. build(deps): bump the go-openapi-dependencies group with 2 updates

    Bumps the go-openapi-dependencies group with 2 updates: [github.com/go-openapi/testify/enable/yaml/v2](https://github.com/go-openapi/testify) and [github.com/go-openapi/testify/v2](https://github.com/go-openapi/testify).
    
    
    Updates `github.com/go-openapi/testify/enable/yaml/v2` from 2.6.1 to 2.7.0
    - [Release notes](https://github.com/go-openapi/testify/releases)
    - [Commits](go-openapi/testify@v2.6.1...v2.7.0)
    
    Updates `github.com/go-openapi/testify/v2` from 2.6.1 to 2.7.0
    - [Release notes](https://github.com/go-openapi/testify/releases)
    - [Commits](go-openapi/testify@v2.6.1...v2.7.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/go-openapi/testify/enable/yaml/v2
      dependency-version: 2.7.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: go-openapi-dependencies
    - dependency-name: github.com/go-openapi/testify/v2
      dependency-version: 2.7.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 Aug 27, 2026
    Configuration menu
    Copy the full SHA
    625e439 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 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.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/bump-release.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/codeql.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/contributors.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/go-test.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/scanner.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/release.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    | [go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml](https://github.com/go-openapi/ci-workflows) | `0.6.0` | `0.6.1` |
    
    
    Updates `go-openapi/ci-workflows/.github/workflows/auto-merge.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/bump-release.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/codeql.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/contributors.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/go-test.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/scanner.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/release.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    Updates `go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml` from 0.6.0 to 0.6.1
    - [Release notes](https://github.com/go-openapi/ci-workflows/releases)
    - [Commits](go-openapi/ci-workflows@81c95ab...38ed6bf)
    
    ---
    updated-dependencies:
    - dependency-name: go-openapi/ci-workflows/.github/workflows/auto-merge.yml
      dependency-version: 0.6.1
      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.1
      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.1
      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.1
      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.1
      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.1
      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.1
      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.1
      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.1
      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 28, 2026
    Configuration menu
    Copy the full SHA
    73f38fe View commit details
    Browse the repository at this point in the history

Commits on Sep 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 Sep 1, 2026
    Configuration menu
    Copy the full SHA
    b3cfdc8 View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址