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: oapi-codegen/echo-middleware
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: build-lint
Choose a base ref
...
head repository: oapi-codegen/echo-middleware
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 10 commits
  • 14 files changed
  • 6 contributors

Commits on Feb 7, 2026

  1. Configuration menu
    Copy the full SHA
    e81f4c5 View commit details
    Browse the repository at this point in the history
  2. Modernize + make more consistent with net/http (#38)

    * fix: return HTTP 405 when request method mismatch
    
    When a route is correctly matched, but the HTTP method used does not, we
    should return an HTTP 405 Method Not Allowed.
    
    However, in our previous implementation, we would always return an HTTP
    404 Not Found, which is incorrect.
    
    Instead, we can match on whether we have received an
    `ErrMethodNotAllowed` and if so, return the correct HTTP 405.
    
    
    * chore: remove references to Swagger
    
    As it's been OpenAPI for a while.
    
    Related: https://togithub.com/oapi-codegen/oapi-codegen/issues/672
    
    * style: use `any` over `interface{}`
    
    * chore: use new organization URL
    
    * chore: remove outdated licensing comments
    
    The code at the time was still copyright to DeepMap, but since the move,
    is updated to the oapi-codegen contributors.
    
    * docs: add package documentation
    
    * docs: improve comments for exported types
    
    * docs: add example test
    
    As a means to provide a full example of usage, we can use a testable
    example.
    
    * docs: rewrite README
    
    
    * feat: allow not validating `Servers` at all
    
    As some folks may not want to perform the workaround of having to mangle
    their `spec.Servers`, as well as removing potentially noisy log lines.
    
    * build: build against recent Go versions
    
    * build: indicate which versions of Go are supported vs "supported"
    
    But we won't really indicate /what/ "supported" means at this time.
    jamietanna authored Feb 7, 2026
    Configuration menu
    Copy the full SHA
    ce13011 View commit details
    Browse the repository at this point in the history
  3. feat: add Prefix option for sub-path mounted APIs (#42)

    Add a Prefix field to Options that strips a path prefix before OpenAPI
    validation. This allows APIs mounted under a sub-path (e.g. "/api") to
    validate correctly against specs whose paths don't include the prefix.
    
    The request is cloned before modification so downstream handlers still
    see the original path.
    
    Closes #11
    Supersedes #15
    
    Co-authored-by: GreyXor <greyxor@protonmail.com>
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    3 people authored Feb 7, 2026
    Configuration menu
    Copy the full SHA
    f3f6b0c View commit details
    Browse the repository at this point in the history
  4. fix: unescape URL-encoded path params before OpenAPI validation (#43)

    gorillamux uses UseEncodedPath(), so FindRoute() returns path parameters
    in percent-encoded form. openapi3filter expects decoded values, which
    causes validation of constraints like maxLength and pattern to fail on
    encoded input (e.g. %2B is 3 chars but decodes to 1 char).
    
    Unescape path parameters after route matching and before passing them
    to openapi3filter.
    
    Fixes #17
    Supersedes #18
    
    Co-authored-by: Florent CHAUVEAU <florentch@pm.me>
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    3 people authored Feb 7, 2026
    Configuration menu
    Copy the full SHA
    b5a3ece View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2026

  1. chore: Update Go to 1.24 and update CI (#47)

    - Update go.mod to require Go 1.24.4
    - Update direct dependencies: kin-openapi to v0.134.0, echo/v4 to
      v4.15.1, testify to v1.11.1
    - Replace individual CI workflow files (generate, lint, tidy) with
      the shared oapi-codegen/actions reusable workflow
    - Add Renovate Go 1.24 constraint to prevent dependency updates
      requiring newer Go versions
    
    Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    mromaszewicz and claude authored Jun 1, 2026
    Configuration menu
    Copy the full SHA
    24c48ee View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2026

  1. OpenAPI 3.1 support in kin-openapi (#56)

    Update Go to 1.25 and all related dependencies, so that we can
    use an OpenAPI 3.1 version of kin-openapi.
    mromaszewicz authored Jul 19, 2026
    Configuration menu
    Copy the full SHA
    347c9c9 View commit details
    Browse the repository at this point in the history
  2. chore(deps): update release-drafter/release-drafter action to v7 (#55)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 19, 2026
    Configuration menu
    Copy the full SHA
    9c03be1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6006233 View commit details
    Browse the repository at this point in the history
  4. chore(deps): update oapi-codegen/actions action to v0.8.0 (#54)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 19, 2026
    Configuration menu
    Copy the full SHA
    128f801 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2026

  1. fix(deps): update module github.com/getkin/kin-openapi to v0.143.0 (#59)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    94bcdda View commit details
    Browse the repository at this point in the history
Loading