Skip to content

Commit

Permalink
feat: add inquirer checkbox validation
Browse files Browse the repository at this point in the history
Closes  #31
  • Loading branch information
javier-sierra-sngular authored and jorgecasar committed Jan 12, 2024
1 parent 32244e0 commit aefbf3d
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 62 deletions.
120 changes: 60 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@inquirer/prompts": "^3.1.2",
"@inquirer/prompts": "^3.3.0",
"@os3/open-api-mocker": "^2.1.0",
"commander": "^11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/services/user-flow-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function init({ origin, schemaPaths, ports } = {}) {
choices: schemas.map((schema) => {
return { value: schema.filePath };
}),
// TODO: pending validation to ensure that at least one schema is selected. Waiting next inquirer release.
required: true,
});

const selectedSchemas = ports?.length ? assignPorts(schemasToMock, ports) : await askForPorts(schemasToMock);
Expand Down

0 comments on commit aefbf3d

Please # to comment.