Cody2333 / koa-swagger-decorator

using decorator to automatically generate swagger doc for koa-router
348 stars 81 forks source link

Schema allows additional properties #137

Open bannatek opened 2 years ago

bannatek commented 2 years ago

Defining all properties of the accepted JSON payload in the schema itself still unintentionally allows additional properties in body of request. Setting minimum and maximum values of the field in the schema object properties also doesn't work to prevent additional properties being passed in request.

Is there a way to limit the properties of an object in request body to the fields described in the schema and no additional properties?