Skip to content

Commit

Permalink
JSON schema validator reset on error
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Jan 18, 2024
1 parent 55742f8 commit ad2e4e5
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 ad2e4e5

Please sign in to comment.