Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 570 Bytes

json-schema.md

File metadata and controls

13 lines (8 loc) · 570 Bytes

JSON Schema

JSON Schema can automaticly be generated for serializable named types exposed via the meta system.

std::string schema = glz::write_json_schema<my_struct>();

This can be used for autocomplete, linting, and validation of user input/config files in editors like VS Code that support JSON Schema.

autocomplete example

linting example