Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 370 Bytes

json_schema.md

File metadata and controls

8 lines (7 loc) · 370 Bytes

Exporting JSON Schema

One can export the JSON Schema to validate the mapped types. #include <daw/json/daw_json_schema.h> and call daw::json::to_json_schema<MyType>( "identifier", "title" ); to generate a std::string. There is an output iterator version too.
Refer to daw_json_schema_test.cpp for a working example.