docs(core): show default values for boolean options in executor schema explorer (#20765)
This commit is contained in:
parent
0392e0d6b8
commit
80a987ee7d
@ -275,7 +275,7 @@ function generateJsonExampleForHelper(
|
||||
return inferExample(
|
||||
schema,
|
||||
(x) => typeof x === 'boolean',
|
||||
() => Example.of(true)
|
||||
() => Example.of(schema.default ?? true)
|
||||
);
|
||||
} else if (type === 'integer' || type === 'number') {
|
||||
return inferExample(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user