Skip to content

Releases: eropple/fastify-openapi3

v0.8.0 - Fastify 5 support!

20 Dec 18:22
Compare
Choose a tag to compare

This is substantially the same code as v0.7.0, but for Fastify 5.x.

v0.7.0 - last Fastify 4.x version!

20 Dec 18:20
Compare
Choose a tag to compare

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

18 Nov 15:50
Compare
Choose a tag to compare
  • replaced postPathItemBuild with postOperationBuild as it does more accurately what you actually want to do (and it was incoherent to pass the whole PathItemObject for every operation within a pathitem anyway)

v0.7.0-alpha.7

11 Nov 21:04
Compare
Choose a tag to compare
  • bug: fixed how root securities were being presented

v0.7.0-alpha.6

08 Nov 18:12
Compare
Choose a tag to compare
  • 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!

08 Oct 18:35
Compare
Choose a tag to compare

(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 and vitest
  • 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

24 Sep 20:02
Compare
Choose a tag to compare
  • 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

29 Aug 23:56
Compare
Choose a tag to compare

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

29 Aug 23:31
Compare
Choose a tag to compare
  • 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

09 Mar 19:47
Compare
Choose a tag to compare
  • breaking change: the exported OAS31 is now done correctly, as several-years-later Ed knows how a type works now (sometimes( (provisionally)