Skip to content

Commit

Permalink
fix(core): generate prompts should not fail due to bad schema (#15201)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Feb 23, 2023
1 parent 8a97b43 commit ba6cc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/utils/params.ts
Expand Up @@ -783,7 +783,7 @@ export function getPromptsForSchema(
question.message = v['x-prompt'].message;
question.validate = (s) => {
try {
validateProperty(k, s, schema, schema.definitions || {});
validateProperty(k, s, v, schema.definitions || {});
return true;
} catch (e) {
return e.message;
Expand Down

1 comment on commit ba6cc33

@vercel
Copy link

@vercel vercel bot commented on ba6cc33 Feb 23, 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.dev
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.