mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-18 05:45:10 +00:00
Merge pull request #112 from hagishi/feature/required-body
feat: set required field when a request body is present
This commit is contained in:
@@ -264,6 +264,7 @@ export const registerSchemaPath = ({
|
||||
...(bodySchema
|
||||
? {
|
||||
requestBody: {
|
||||
required: true,
|
||||
content: mapTypesResponse(
|
||||
contentTypes,
|
||||
typeof bodySchema === 'string'
|
||||
|
||||
Reference in New Issue
Block a user