Format JSON Schemas by reordering keywords into a canonical order. More...
Functions | |
| SOURCEMETA_BLAZE_FORMAT_EXPORT auto | sourcemeta::blaze::format (sourcemeta::core::JSON &schema, const SchemaWalker &walker, const SchemaResolver &resolver, std::string_view default_dialect="") -> void |
Format JSON Schemas by reordering keywords into a canonical order.
This functionality is included as follows:
| SOURCEMETA_BLAZE_FORMAT_EXPORT auto sourcemeta::blaze::format | ( | sourcemeta::core::JSON & | schema, |
| const SchemaWalker & | walker, | ||
| const SchemaResolver & | resolver, | ||
| std::string_view | default_dialect = "" |
||
| ) | -> void |
Format a JSON Schema document by reordering all object properties throughout the entire document according to an opinionated JSON Schema aware ordering. This function modifies the schema in-place. For example: