diff --git a/nx-dev/feature-package-schema-viewer/src/lib/examples.ts b/nx-dev/feature-package-schema-viewer/src/lib/examples.ts index 676f9a82fb50c..af4b820782644 100644 --- a/nx-dev/feature-package-schema-viewer/src/lib/examples.ts +++ b/nx-dev/feature-package-schema-viewer/src/lib/examples.ts @@ -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(