Skip to content

Commit

Permalink
README: Fix path parameters extraction (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunta authored Dec 29, 2023
1 parent eca3780 commit 5dec3ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Query, Path, Header & Cookie parameters can be created using the `requestParams`
```typescript
createDocument({
paths: {
'/jobs/:a': {
'/jobs/{a}': {
put: {
requestParams: {
path: z.object({ a: z.string() }),
Expand All @@ -201,7 +201,7 @@ If you would like to declare parameters in a more traditional way you may also d
```ts
createDocument({
paths: {
'/jobs/:a': {
'/jobs/{a}': {
put: {
parameters: [
z.string().openapi({
Expand Down

0 comments on commit 5dec3ed

Please sign in to comment.