Releases: eropple/fastify-openapi3
Releases · eropple/fastify-openapi3
v0.8.0 - Fastify 5 support!
v0.7.0 - last Fastify 4.x version!
Identical to v0.7.0-alpha.8
, just finalized.
THIS WILL BE THE LAST FASTIFY 4.x
VERSION. Maybe some bug fixes, but also maybe not. Time for us to upgrade.
v0.7.0-alpha.8
- replaced
postPathItemBuild
withpostOperationBuild
as it does more accurately what you actually want to do (and it was incoherent to pass the wholePathItemObject
for every operation within a pathitem anyway)
v0.7.0-alpha.7
- bug: fixed how root securities were being presented
v0.7.0-alpha.6
- bug fix: while the new security system was working, it wasn't including
security:
in the actual OAS doc. woops.
v0.7.0-alpha.5: autowired security!
(there was an -alpha.4
but this supercedes it)
This is a relatively big release: it adds autowired security. A full release will come with more details on how to use it, but consult autowired-security.spec.ts
for a precise:
- internal: moved to
pnpm
andvitest
- autowired security works; by default it's disabled. In a nutshell: enable it, specify your security schemes, and the plugin will generate route-level
onRequest
hooks to validate user input as per your instructions.- full disclosure: not sure this stays in this plugin, at least as it is. I find it useful for me, but it's kind of spreading out past just "OpenAPI". On the other hand, it's really valuable and it syncs your stated security schemes with your underlying route logic.
v0.7.0-alpha.3
- bug fix: added
required: true
to output for path parameters (I misread the spec)
A future TODO is to rework the test suite to run all of them through the doc validator to catch this sort of thing.
v0.7.0-alpha.2
Only 30 minutes later, because I forgot the other thing I wanted to do:
- Added Scalar support. Scalar is a relatively new OpenAPI doc renderer, and it's really slick. Enable it by passing
publish: { ui: 'scalar' }
.
v0.7.0-alpha.1
- IMPORTANT: I relicensed this project to MIT.
- No breaking changes, but I bumped a minor to indicate that it's chonky.
- So this is embarrassing, but I didn't realize I never promoted the full OAS operation to the GitHub version, just my private GitLab. ...oops. Rectified now, along with all tests that go with it. So it, uh. Works right, now.
- I cleaned up the repo across the board - much more in-depth eslinting and general code-quality stuff.
- CI now tests against Node 20 and 22.
Full Changelog: v0.6.0-alpha.2...v0.7.0-alpha.1
v0.6.0-alpha.2: type signature change for reexport from openapi3-ts
- breaking change: the exported
OAS31
is now done correctly, as several-years-later Ed knows how a type works now (sometimes( (provisionally)