From 71b1e1b5d8aeadb2b9659833fae43fe7461f05ae Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Wed, 27 Nov 2019 14:11:54 -0500 Subject: [PATCH] update README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f1b4d8d..9adcb8b7 100644 --- a/README.md +++ b/README.md @@ -546,7 +546,8 @@ that are _not_ under the base URL—such as pages—will not be validated. ## FAQ -**Q:** How can I ensure that additional properties are not allowed in request/response schemas. + +**Q:** I can disallow unknown query parameters with `allowUnknownQueryParameters: false`. How can disallow unknown body parameters? **A:** Add `additionalProperties: false` when [describing](https://swagger.io/docs/specification/data-models/keywords/) e.g a `requestBody` to ensure that additional properties are not allowed. For example: