Skip to content

Commit 04bf8cd

Browse files
committedOct 18, 2017
Added new disableDropdown to usgae guide
1 parent 4b1a7c9 commit 04bf8cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎usageguide.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,9 @@ Not all the flexibility of HAPI and JOI can to ported over to the Swagger schema
546546
547547
548548
# Known issues with `jsonEditor`
549-
The `jsonEditor` is a new option in the latest version of SwaggerUI. It can provide a much enchanced UI, but I have found a few issues where it does not render correctly and can stop the rest of the UI from displaying.
549+
The `jsonEditor` is a new option in the SwaggerUI. It can provide a much enchanced UI, but I have found a few issues where it does not render correctly and can stop the rest of the UI from displaying.
550550
* Starting a JOI schema as an `Joi.array()` for a `payload` or `response` object can cause the UI to break with the browser JavaScript error message `Uncaught TypeError: Cannot read property 'required' of undefined`.
551+
* If you wish to switch off dropdown menus for a given propty this can be achieved by adding chaining `.meta()` option to a JOI property i.e. `Joi.number().integer().positive().allow(0).meta({disableDropdown: true})`
551552
552553
553554

0 commit comments

Comments
 (0)
Please sign in to comment.