Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Nov 27, 2019
1 parent 19db678 commit 71b1e1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 71b1e1b

Please sign in to comment.