org::openapitools::server::helpers¶
Namespaces¶
| Name |
|---|
| org::openapitools::server::helpers::sfinae_helpers |
Classes¶
| Name | |
|---|---|
| class | org::openapitools::server::helpers::ValidationException |
Functions¶
| Name | |
|---|---|
| const std::regex | regexRfc3339_date(R"(^(\d{4})\-(\d{2})\-(\d{2})$)" ) |
| const std::regex | regexRfc3339_date_time(R"(^(\d{4})\-(\d{2})\-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(\.\d+)?([Zz]\|([\+\-])(\d{2}):(\d{2}))$)" ) |
| bool | validateRfc3339_date(std::string const & str) |
| bool | validateRfc3339_date_time(std::string const & str) |
| std::string | toStringValue(const std::string & value) |
| std::string | toStringValue(const int32_t value) |
| std::string | toStringValue(const int64_t value) |
| std::string | toStringValue(const bool value) |
| std::string | toStringValue(const float value) |
| std::string | toStringValue(const double value) |
| bool | fromStringValue(const std::string & inStr, std::string & value) |
| bool | fromStringValue(const std::string & inStr, int32_t & value) |
| bool | fromStringValue(const std::string & inStr, int64_t & value) |
| bool | fromStringValue(const std::string & inStr, bool & value) |
| bool | fromStringValue(const std::string & inStr, float & value) |
| bool | fromStringValue(const std::string & inStr, double & value) |
| template <typename T > bool |
hasOnlyUniqueItems(std::vector< T > const & vec) |
| template <typename T > bool |
fromStringValue(std::vector< std::string > const & inStr, std::vector< T > & value) |
| template <typename T > bool |
fromStringValue(std::string const & inStr, std::vector< T > & value, char separator =',') |
Detailed Description¶
SecuRT No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1
Functions Documentation¶
function regexRfc3339_date¶
const std::regex regexRfc3339_date(
R"(^(\d{4})\-(\d{2})\-(\d{2})$)"
)
function regexRfc3339_date_time¶
const std::regex regexRfc3339_date_time(
R"(^(\d{4})\-(\d{2})\-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(\.\d+)?([Zz]|([\+\-])(\d{2}):(\d{2}))$)"
)
function validateRfc3339_date¶
bool validateRfc3339_date(
std::string const & str
)
Validate a string against the full-date definition of RFC 3339, section 5.6.
function validateRfc3339_date_time¶
bool validateRfc3339_date_time(
std::string const & str
)
Validate a string against the date-time definition of RFC 3339, section 5.6.
function toStringValue¶
std::string toStringValue(
const std::string & value
)
function toStringValue¶
std::string toStringValue(
const int32_t value
)
function toStringValue¶
std::string toStringValue(
const int64_t value
)
function toStringValue¶
std::string toStringValue(
const bool value
)
function toStringValue¶
std::string toStringValue(
const float value
)
function toStringValue¶
std::string toStringValue(
const double value
)
function fromStringValue¶
bool fromStringValue(
const std::string & inStr,
std::string & value
)
function fromStringValue¶
bool fromStringValue(
const std::string & inStr,
int32_t & value
)
function fromStringValue¶
bool fromStringValue(
const std::string & inStr,
int64_t & value
)
function fromStringValue¶
bool fromStringValue(
const std::string & inStr,
bool & value
)
function fromStringValue¶
bool fromStringValue(
const std::string & inStr,
float & value
)
function fromStringValue¶
bool fromStringValue(
const std::string & inStr,
double & value
)
function hasOnlyUniqueItems¶
template <typename T >
bool hasOnlyUniqueItems(
std::vector< T > const & vec
)
Determine if the given vector
function fromStringValue¶
template <typename T >
bool fromStringValue(
std::vector< std::string > const & inStr,
std::vector< T > & value
)
function fromStringValue¶
template <typename T >
bool fromStringValue(
std::string const & inStr,
std::vector< T > & value,
char separator =','
)