Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
bubblev
/
swagger-ui
Segui
4
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
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 anni fa
committed by
GitHub
parent
626e92318d
8d4750d76c
commit
96673d1376
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+1
-1
src/core/plugins/samples/fn.js
+ 1
- 1
src/core/plugins/samples/fn.js
Vedi 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) => {
Scrivi
Anteprima
Caricamento…
Annulla
Salva