CCF
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
ccf::ds::openapi Namespace Reference

Namespaces

namespace  access
 

Classes

struct  Cose
 
struct  SchemaHelper
 

Functions

void fill_json_schema (nlohmann::json &schema, const Cose *cose)
 
std::string schema_name (const Cose *cose)
 
template<typename Doc , typename T >
void add_schema_components (Doc &document, nlohmann::json &j, const T *t)
 

Detailed Description

This namespace contains helper functions, structs, and templates for modifying an OpenAPI JSON document. They do not set every field, but should fill every required field, and the resulting object can be further modified by hand as required.

Function Documentation

◆ add_schema_components()

template<typename Doc , typename T >
void ccf::ds::openapi::add_schema_components ( Doc &  document,
nlohmann::json &  j,
const T *  t 
)

◆ fill_json_schema()

void ccf::ds::openapi::fill_json_schema ( nlohmann::json &  schema,
const Cose cose 
)
inline

◆ schema_name()

std::string ccf::ds::openapi::schema_name ( const Cose cose)
inline