Skip to content

Releases: samchungy/fastify-zod-openapi

v1.2.0

07 Mar 10:38
fee2624
Compare
Choose a tag to compare

What's Changed

New Features 🎉

  • Add Fastify Plugin Signatures by @samchungy, @Puppo in #99

    This allows you to declare your routes with more modularity eg.

    const plugin: FastifyPluginAsyncZodOpenApi = async (fastify, _opts) => {
      fastify.route({
        method: 'POST',
        url: '/',
        // Define your schema
        schema: {
          body: z.object({
            jobId: z.string().openapi({
              description: 'Job ID',
              example: '60002023',
            }),
          }),
          response: {
            201: z.object({
              jobId: z.string().openapi({
                description: 'Job ID',
                example: '60002023',
              }),
            }),
          },
        } satisfies FastifyZodOpenApiSchema,
        handler: async (req, res) => {
          await res.send({ jobId: req.body.jobId });
        },
      });
    };
    app.register(plugin);

Full Changelog: v1.1.0...v1.2.0

v1.1.0

20 Feb 02:22
574aea8
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Other Changes

Full Changelog: v1.0.2...v1.1.0

v1.0.2

13 Jul 05:01
9f1fefc
Compare
Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v1.0.1...v1.0.2

v1.0.1

13 Jul 04:08
7b53540
Compare
Choose a tag to compare

What's Changed

Other Changes

New Contributors

Full Changelog: v1.0.0...v1.0.1

v1.0.0

10 Jul 01:05
9cabfec
Compare
Choose a tag to compare

What's Changed

Breaking Changes 🛠

  • Add components support by @samchungy in #9

    zod-openapi 2.6.3 is now required. Please check the readme on how to enable this support.

New Contributors

Full Changelog: v0.1.1...v1.0.0

v0.1.1

03 Jul 10:52
bcceabe
Compare
Choose a tag to compare

What's Changed

  • Publish with provenance

New Contributors

  • @github-actions made their first contribution in #7

Full Changelog: v0.1.0...v0.1.1

v0.1.1-beta.3

03 Jul 10:43
99a2ea4
Compare
Choose a tag to compare
v0.1.1-beta.3 Pre-release
Pre-release

Attempt to publish with provenance attempt 3

New Contributors

  • @github-actions made their first contribution in #7

Full Changelog: v0.1.0...v0.1.1-beta.3

v0.1.1-beta.2

03 Jul 10:27
245d997
Compare
Choose a tag to compare
v0.1.1-beta.2 Pre-release
Pre-release

Attempt to release with provenance attempt 2

New Contributors

  • @github-actions made their first contribution in #7

Full Changelog: v0.1.0...v0.1.1-beta.2

v0.1.1-beta.1

03 Jul 10:21
f90f43d
Compare
Choose a tag to compare
v0.1.1-beta.1 Pre-release
Pre-release

Attempt to publish with provenance

Full Changelog: v0.1.0...v0.1.1-beta.1

v0.1.0

03 Jul 10:05
d42f401
Compare
Choose a tag to compare

What's Changed

  • Initial Release

    Please note: At this time, there is no support for components.

Full Changelog: https://github.com/samchungy/fastify-zod-openapi/commits/v0.1.0