Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Nov 27, 2019
1 parent 71b1e1b commit 3778df3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,17 +551,17 @@ that are _not_ under the base URL—such as pages—will not be validated.

**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:

```yaml
Pet:
additionalProperties: false
required:
- name
properties:
name:
type: string
type:
type: string
```
```yaml
Pet:
additionalProperties: false
required:
- name
properties:
name:
type: string
type:
type: string
```

**Q:** Can I use `express-openapi-validator` with `swagger-ui-express`?

Expand Down

0 comments on commit 3778df3

Please sign in to comment.