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
| transform | null | Transform method for the route's schema and url. [documentation](#register.options.transform). ||
242
-
| transformObject | null | Transform method for the swagger or openapi object before it is rendered. [documentation](#register.options.transformObject). ||
243
-
| refResolver | {} | Option to manage the `$ref`s of your application's schemas. Read the [`$ref` documentation](#register.options.refResolver)|
244
-
| exposeHeadRoutes | false | Include HEAD routes in the definitions |
| transform | null | Transform method for the route's schema and url. [documentation](#register.options.transform). |
242
+
| transformObject | null | Transform method for the swagger or openapi object before it is rendered. [documentation](#register.options.transformObject). |
243
+
| refResolver | {} | Option to manage the `$ref`s of your application's schemas. Read the [`$ref` documentation](#register.options.refResolver)|
244
+
| exposeHeadRoutes | false | Include HEAD routes in the definitions |
To deep down the `buildLocalReference` arguments, you may read the [documentation](https://github.com/Eomm/json-schema-resolver#usage-resolve-one-schema-against-external-schemas).
364
365
366
+
<a name="register.options.decorator"></a>
367
+
#### Decorator
368
+
369
+
By passing a string to the `decorator` option, you can override the default decorator function (`fastify.swagger()`) with a custom one. This allows you to create multiple documents by registering `@fastify/swagger` multiple times with different `transform` functions:
0 commit comments