|
| static std::optional< json > | findPreset (const std::string &key) |
| static std::optional< std::string > | validatePreset (const std::string &key, const std::string &value) |
| static std::optional< std::string > | minimumConstraintCheck (const json &field, const json &body) |
| static std::optional< std::string > | maximumConstraintCheck (const json &field, const json &body) |
| static std::optional< std::string > | intPrecisionValueCheck (const json &field, const json &body) |
| static std::optional< std::string > | requiredConstraintCheck (const json &field, const json &body) |
| static std::optional< std::string > | validatorConstraintCheck (const json &field, const json &body) |
| static std::optional< std::string > | foreignKeyConstraintCheck (const MantisBase &app, const json &field, const json &body) |
| | Validate a foreign-key field against a referenced entity record.
|
| static std::optional< std::string > | viewTypeSQLCheck (const json &body) |
| static std::optional< std::string > | validateTableSchema (const json &entity_schema) |
| static std::optional< std::string > | validateRequestBody (const MbEntity &entity, const json &body) |
| static std::optional< std::string > | validateUpdateRequestBody (const MbEntity &entity, const json &body) |
Static validators for schema definitions and CRUD request bodies.
Each check returns std::nullopt on success or an error message string.