Class SchemaDesc
Defined in File route_descriptions.hpp
Class Documentation
-
class SchemaDesc
Public Functions
-
inline SchemaDesc &property(const std::string &name, SchemaDesc schema)
-
inline SchemaDesc &required(const std::vector<std::string> &fields)
-
inline nlohmann::json to_json() const
Public Static Functions
-
static inline SchemaDesc string()
-
static inline SchemaDesc number()
-
static inline SchemaDesc integer()
-
static inline SchemaDesc boolean()
-
static inline SchemaDesc array(SchemaDesc items)
-
static inline SchemaDesc object()
-
static inline SchemaDesc ref(const std::string &ref_name)
-
static inline SchemaDesc response_ref(const std::string &ref_name)
-
inline SchemaDesc &property(const std::string &name, SchemaDesc schema)