This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
bubblev
/
swagger-ui
Прати
4
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
#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 година
родитељ
165c1d7fcb
комит
8b073757fe
1 измењених фајлова
са
1 додато
и
1 уклоњено
Подељен поглед
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
Прегледај датотеку
@@ -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…
Откажи
Сачувај