25 #ifndef FABLE_SCHEMA_IGNORE_HPP_ 26 #define FABLE_SCHEMA_IGNORE_HPP_ 48 Ignore() :
Base(JsonType::object,
"ignored") {}
49 explicit Ignore(std::string&& desc,
JsonType t = JsonType::object) :
Base(t, std::move(desc)) {}
53 Json j = Json::object({});
54 this->augment_schema(j);
65 inline Ignore make_schema(std::string&& desc,
JsonType t = JsonType::object) {
66 return Ignore(std::move(desc), t);
72 #endif // FABLE_SCHEMA_IGNORE_HPP_
void to_json(Json &j) const override
Definition: ignore.hpp:60
Definition: ignore.hpp:46
nlohmann::json Json
Definition: json.hpp:62
void reset_ptr() override
Definition: ignore.hpp:62
Json::value_t JsonType
Definition: json.hpp:78
virtual Json to_json() const
Definition: interface.hpp:220
void validate(const Conf &) const override
Definition: ignore.hpp:58
Definition: interface.hpp:354
void from_conf(const Conf &) override
Definition: ignore.hpp:61
Json json_schema() const override
Definition: ignore.hpp:52