Skip to content

Commit

Permalink
Regen Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg committed Dec 24, 2024
1 parent 449d7ac commit 18aaa9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/api/app/api/v1/markets/[id]/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export default {
summary: 'Update a market',
security: true,
parameters: MarketSchema.pick({ id: true }),
requestBody: MarketSchema.pick({ question: true, description: true, closeDate: true, tags: true }).partial(),
requestBody: MarketSchema.pick({
question: true,
description: true,
closeDate: true,
tags: true,
createdBy: true,
}).partial(),
responses: {
200: z.object({ data: MarketSchema }),
404: ServerErrorSchema,
Expand Down
3 changes: 3 additions & 0 deletions apps/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4838,6 +4838,9 @@
"type": "string"
},
"maxItems": 5
},
"createdBy": {
"type": "string"
}
}
}
Expand Down

0 comments on commit 18aaa9d

Please sign in to comment.