You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently a mismatch between the a commands .validate method and the ValidateHelper. .validate returns type of boolean but the ValidateHelper returns a Promise, meaning you can't use the helper in a command. Making .validate async would fix this issue.
Code
validate(helper: Helper){letschema;try{schema=JSON.parse(readFileSync(path.join(__dirname,'schema.json')).toString());}catch(error){returnPromise.reject(Error('The dojorc schema for cli-build-app could not be read: '+error));}returnhelper.validation.validate({commandGroup: command.groupasstring,commandName: command.name,commandSchema: schema,commandConfig: helper.configuration.get(),silentSuccess: true});}
Expected behavior:
You should be able to use the provided ValidateHelper in the .validate function.
Actual behavior:
ValidateHelper is async which stops it from being useable.
The text was updated successfully, but these errors were encountered:
Bug
There is currently a mismatch between the a commands
.validate
method and the ValidateHelper..validate
returns type of boolean but the ValidateHelper returns a Promise, meaning you can't use the helper in a command. Making.validate
async would fix this issue.Code
Expected behavior:
You should be able to use the provided
ValidateHelper
in the.validate
function.Actual behavior:
ValidateHelper
is async which stops it from being useable.The text was updated successfully, but these errors were encountered: