| 1186 | } |
| 1187 | |
| 1188 | bool CheckDoubleMultipleOf(Context& context, double d) const { |
| 1189 | double a = std::abs(d), b = std::abs(multipleOf_.GetDouble()); |
| 1190 | double q = std::floor(a / b); |
| 1191 | double r = a - q * b; |
| 1192 | if (r > 0.0) |
| 1193 | RAPIDJSON_INVALID_KEYWORD_RETURN(GetMultipleOfString()); |
| 1194 | return true; |
| 1195 | } |
| 1196 | |
| 1197 | struct Property { |
| 1198 | Property() : schema(), dependenciesSchema(), dependenciesValidatorIndex(), dependencies(), required(false) {} |