Skip to content

Commit c5fb51f

Browse files
authored
docs(zod-openapi): fix missing arguments for app.doc31 (#721)
1 parent 9db0780 commit c5fb51f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/zod-openapi/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ app.openapi(
239239
You can generate OpenAPI v3.1 spec using the following methods:
240240

241241
```ts
242-
app.doc31('/docs', { openapi: '3.1.0' }) // new endpoint
243-
app.getOpenAPI31Document({ openapi: '3.1.0' }) // raw json
242+
app.doc31('/docs', { openapi: '3.1.0', info: { title: 'foo', version: '1' } }) // new endpoint
243+
app.getOpenAPI31Document({ openapi: '3.1.0', info: { title: 'foo', version: '1' } }) // schema object
244244
```
245245

246246
### The Registry

0 commit comments

Comments
 (0)