You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-33Lines changed: 24 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ A Fastify plugin for serving [Swagger (OpenAPI v2)](https://swagger.io/specifica
8
8
9
9
If you are looking for a plugin to generate routes from an existing OpenAPI schema, check out [fastify-openapi-glue](https://github.com/seriousme/fastify-openapi-glue).
10
10
11
-
Following plugins serve swagger/openapi front-ends based on the swagger definitions generated by this plugin:
11
+
Following plugins serve Swagger/OpenAPI front-ends based on the swagger definitions generated by this plugin:
@@ -17,6 +17,7 @@ See also [the migration guide](MIGRATION.md) for migrating from `@fastify/swagge
17
17
18
18
<aname="install"></a>
19
19
## Install
20
+
20
21
```
21
22
npm i @fastify/swagger
22
23
```
@@ -39,48 +40,42 @@ See [Fastify's LTS policy](https://github.com/fastify/fastify/blob/main/docs/Ref
39
40
40
41
<aname="usage"></a>
41
42
## Usage
42
-
Add it to your project with `register`, pass it some options, call the `swagger` API, and you are done!
43
+
44
+
Add it to your project with `register`, pass it some options, call the `swagger` API, and you are done! Below an example of how to configure the OpenAPI v3 specification with Fastify Swagger:
0 commit comments