This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@interledger/openapi@2.0.0
Major Changes
6dde8b2: Changes to the createValidatorMiddleware behaviour:
The middleware now throws a OpenAPIValidatorMiddlewareError instead of directly using Koa's ctx.throw function. This error class has message and status properties that describe the exact validation error as well as the status code that should be thrown.
The middleware now takes in an optional validationOptions argument that determines whether to validate just the request, the response or both. By default, both are validated, and the middleware no longer uses process.env.NODE_ENV to determine whether to validate the response or not.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@interledger/openapi@2.0.0
Major Changes
6dde8b2: Changes to the
createValidatorMiddleware
behaviour:OpenAPIValidatorMiddlewareError
instead of directly using Koa'sctx.throw
function. This error class hasmessage
andstatus
properties that describe the exact validation error as well as the status code that should be thrown.validationOptions
argument that determines whether to validate just the request, the response or both. By default, both are validated, and the middleware no longer usesprocess.env.NODE_ENV
to determine whether to validate the response or not.@interledger/open-payments@6.8.1
Patch Changes