This website works better with JavaScript.
Home
Explore
Help
Sign In
bubblev
/
swagger-ui
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Merge pull request
#3293
from owenconti/ft/3289-boolean-default-value
#3289
- Update boolean sample function base value off of schema object
bubble
shockey
7 years ago
committed by
GitHub
parent
626e92318d
8d4750d76c
commit
96673d1376
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/core/plugins/samples/fn.js
+ 1
- 1
src/core/plugins/samples/fn.js
View File
@@ -9,7 +9,7 @@ const primitives = {
"number": () => 0,
"number_float": () => 0.0,
"integer": () => 0,
"boolean": () => true
"boolean": (
schema
) => t
ypeof schema.default === "boolean" ? schema.default : t
rue
}
const primitive = (schema) => {
Write
Preview
Loading…
Cancel
Save