docs(zod-openapi): fix missing arguments for app.doc31 (#721)

pull/731/head
Masashi Tomooka 2024-08-29 15:12:57 +09:00 committed by GitHub
parent 9db07806c9
commit c5fb51f783
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -239,8 +239,8 @@ app.openapi(
You can generate OpenAPI v3.1 spec using the following methods:
```ts
app.doc31('/docs', { openapi: '3.1.0' }) // new endpoint
app.getOpenAPI31Document({ openapi: '3.1.0' }) // raw json
app.doc31('/docs', { openapi: '3.1.0', info: { title: 'foo', version: '1' } }) // new endpoint
app.getOpenAPI31Document({ openapi: '3.1.0', info: { title: 'foo', version: '1' } }) // schema object
```
### The Registry