DAW JSON Link
Loading...
Searching...
No Matches
Namespaces | Functions
daw::json::anonymous_namespace{daw_json_schema.h} Namespace Reference

Namespaces

namespace  utils
 

Functions

template<typename T , typename WritableType , auto... PolicyFlags>
constexpr WritableType to_json_schema (WritableType &it, std::string_view id, std::string_view title, options::output_flags_t< PolicyFlags... >=options::output_flags<>)
 Generate a JSON Schema string based on the mappings for the type specified.
 

Function Documentation

◆ to_json_schema()

template<typename T , typename WritableType , auto... PolicyFlags>
constexpr WritableType daw::json::anonymous_namespace{daw_json_schema.h}::to_json_schema ( WritableType &  it,
std::string_view  id,
std::string_view  title,
options::output_flags_t< PolicyFlags... >  = options::output_flags<> 
)
constexpr

Generate a JSON Schema string based on the mappings for the type specified.

Template Parameters
TKnown or mapped type to generate JSON Schema for
WritableTypeAn output iterator to write characters to
PolicyFlagsOptional policy flags to control output
Parameters
idJSON Schema identifier
titleJSON Schema title
Returns
the Output iterator after writing JSON schema to it

Definition at line 760 of file daw_json_schema.h.