Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions openapi/frameworks/fastify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Once the Fastify OpenAPI plugin has generated the OpenAPI document from those ex

Here is what we will cover:

1. Install and configure `@fastify/swagger`, and don't worry it supports OpenAPI v3.x.
1. Install and configure `@fastify/swagger`, and don't worry it supports OpenAPI v3.2.
2. Generate an OpenAPI document from route schemas.
3. Add reusable component schemas with `fastify.addSchema()`.
4. Define stable `operationId` and tags for SDK ergonomics.
Expand Down Expand Up @@ -54,7 +54,7 @@ The specific versions of packages will change over time, but these are the versi
"dependencies": {
"@fastify/autoload": "^6.3.0",
"@fastify/sensible": "^6.0.0",
"@fastify/swagger": "^9.7.0",
"@fastify/swagger": "^9.9.0",
"@scalar/fastify-api-reference": "^1.25.11",
"fastify": "^5.8.0",
"fastify-cli": "^8.0",
Expand Down Expand Up @@ -86,7 +86,7 @@ import scalar from "@scalar/fastify-api-reference";
export default fp(async (fastify) => {
await fastify.register(swagger, {
openapi: {
openapi: "3.1.2",
openapi: "3.2.0",
info: {
title: "Train Travel API",
description: "API for finding and booking train trips across Europe.",
Expand Down Expand Up @@ -130,7 +130,7 @@ What happens next will depend very much on how the routes are defined and how mu

```json
{
"openapi": "3.1.2",
"openapi": "3.2.0",
"info": {
"title": "Train Travel API",
"description": "API for finding and booking train trips across Europe.",
Expand Down
Loading