Skip to content

Commit

Permalink
Merge pull request #13 from nawaz1991/12-bug---JSON-validator-reset
Browse files Browse the repository at this point in the history
JSON schema validator reset on error
  • Loading branch information
nawaz1991 authored Jan 18, 2024
2 parents 55742f8 + ad2e4e5 commit 3044181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/validators/json_validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ValidationError JsonValidator::ValidateJson(const std::string& json_str, std::st
error_msg = err_header_;
CreateErrorMessages(validator_->GetError(), std::string(), error_msg);
error_msg.append("}}");
validator_->Reset();

return code_on_error_;
}
Expand Down

0 comments on commit 3044181

Please sign in to comment.