| Line | Branch | Exec | Source | 
|---|---|---|---|
| 1 | /* | ||
| 2 | * Copyright (c) 2024 Muhammad Nawaz | ||
| 3 | * Licensed under the MIT License. See LICENSE file for more information. | ||
| 4 | */ | ||
| 5 | // [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ] | ||
| 6 | |||
| 7 | #ifndef BODY_VALIDATOR_HPP | ||
| 8 | #define BODY_VALIDATOR_HPP | ||
| 9 | |||
| 10 | #include "validators/json_validator.hpp" | ||
| 11 | |||
| 12 | class BodyValidator: public JsonValidator | ||
| 13 | { | ||
| 14 | public: | ||
| 15 | 136 | explicit BodyValidator(const rapidjson::Value& schema_val, const std::vector<std::string>& ref_keys) | |
| 16 | 136 | : JsonValidator(schema_val, ref_keys, ValidationError::INVALID_BODY) | |
| 17 | { | ||
| 18 | 136 | } | |
| 19 | }; | ||
| 20 | |||
| 21 | #endif // BODY_VALIDATOR_HPP | ||
| 22 |