koa-swagger-decorator icon indicating copy to clipboard operation
koa-swagger-decorator copied to clipboard

Schema allows additional properties

Open bannatek opened this issue 3 years ago • 0 comments

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?

bannatek avatar Oct 28 '21 14:10 bannatek