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
#3289
- Update boolean sample function to accept schema object and return value based off of schema's default value (if exists)
bubble
Owen Conti
7 years ago
parent
165c1d7fcb
commit
8b073757fe
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