From f466d9e971d2f64473fc3cf27aee924c0cbc016c Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Sun, 27 Dec 2020 21:49:33 -0500 Subject: [PATCH] doc: update README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 27804ef0..60f8d435 100644 --- a/README.md +++ b/README.md @@ -1076,6 +1076,11 @@ With the following Express route defintion A path like `/files/some/long/path` will pass validation. The Express `req.params.path` property will hold the value `some/long/path`. +**Q:** Can I use discriminators with `oneOf` and `anyOf`? + +**A:** +Currently, there is support for top level discriminators. See [top-level discriminator example](https://github.com/cdimascio/express-openapi-validator/tree/master/examples/8-top-level-discriminator) + **Q:** What happened to the `securityHandlers` property? **A:** In v3, `securityHandlers` have been replaced by `validateSecurity.handlers`. To use v3 security handlers, move your existing security handlers to the new property. No other change is required. Note that the v2 `securityHandlers` property is supported in v3, but deprecated @@ -1202,6 +1207,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d + This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!