Skip to content

Commit

Permalink
sets validation errors to empty array when url is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirishikesan committed Nov 27, 2023
1 parent 7caede7 commit 8a4fbfd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export default function ProvideOpenAPI(props) {
info.content = content;
inputsDispatcher({ action: 'preSetAPI', value: info });
setValidity({ ...isValid, url: null });
setValidationErrors([]);
} else {
setValidity({ ...isValid, url: { message: 'OpenAPI content validation failed!' } });
setValidationErrors(errors);
Expand Down

0 comments on commit 8a4fbfd

Please sign in to comment.