Skip to content

Commit defe0d1

Browse files
nt0tskyn.totskii
andauthored
Fixed issue in doc with example type (#5)
* added update about discriminator support * Fixed issue with type of example in doc --------- Co-authored-by: n.totskii <n.totskiy@fxpro.com>
1 parent dcc98fc commit defe0d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ A path like `/files/some/long/path` will pass validation. The Express `req.param
3434
- By default, only **top-level discriminators** are supported. See the [top-level discriminator example](https://github.com/cdimascio/express-openapi-validator/tree/master/examples/8-top-level-discriminator).
3535
- To also enable **deep discriminator** support (nested within `oneOf` / `anyOf`), set the `discriminator` option under `validateRequests`:
3636

37-
```js
37+
```javascript
3838
app.use(
3939
OpenApiValidator.middleware({
4040
apiSpec,

0 commit comments

Comments
 (0)