Bruno Antinomio

Results 5 comments of Bruno Antinomio

@abz53378 I checked the list of situations with some suggestions. Please take a look. First, it should be valid when using async validator, with async/await syntax, and no return value...

Okay. As workaround, make it throw error when validator is not a function in runtime . ```javascript if(!isFunction(validator)) { throw 'Validator should be a function' } ```

@abz53378 My current solution is: Add async syntax to componentDidMount with await validate function resolution. ```JS async componentDidMount() { const {refId, validation = {}, onDeploy, required = false} = this.props;...

@abz53378 Finally, I update the test files as your suggestions, and add new cases about async functions except unexpected error one. But I tested it manually by following snippet and...

I rechecked, and found that only one place needs to be modified. In [docs](https://github.com/Canner/canner/blob/canary/docs/schema/utils.js#L5-L11) folder, there is a galleryValidation. ```JS export const galleryValidation = { validator: (content, reject) => {...