Skip to content

Commit

Permalink
docs(zod-openapi): fix missing arguments for app.doc31 (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmokmss authored Aug 29, 2024
1 parent 9db0780 commit c5fb51f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zod-openapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5fb51f

Please sign in to comment.