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: apps/content/docs/openapi/plugins/openapi-reference.md
+1-27Lines changed: 1 addition & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ import { OpenAPIReferencePlugin } from '@orpc/openapi/plugins'
20
20
const handler =newOpenAPIHandler(router, {
21
21
plugins: [
22
22
newOpenAPIReferencePlugin({
23
+
docsProvider: 'swagger', // default: 'scalar'
23
24
schemaConverters: [
24
25
newZodToJsonSchemaConverter(),
25
26
],
@@ -37,30 +38,3 @@ const handler = new OpenAPIHandler(router, {
37
38
::: info
38
39
By default, the API reference client is served at the root path (`/`), and the OpenAPI specification is available at `/spec.json`. You can customize these paths by providing the `docsPath` and `specPath` options.
39
40
:::
40
-
41
-
## Using Swagger UI
42
-
43
-
To use Swagger UI instead of the default Scalar interface:
0 commit comments