Skip to content

Commit

Permalink
docs(core): show default values for boolean options in executor schem…
Browse files Browse the repository at this point in the history
…a explorer (#20765)
  • Loading branch information
jaysoo authored Dec 14, 2023
1 parent 0392e0d commit 80a987e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx-dev/feature-package-schema-viewer/src/lib/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

1 comment on commit 80a987e

@vercel
Copy link

@vercel vercel bot commented on 80a987e Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.