| 862 | #endif |
| 863 | |
| 864 | int main() |
| 865 | { |
| 866 | std::cout << "\nJSON Schema Examples\n\n"; |
| 867 | validate_three_ways(); |
| 868 | std::cout << "\n"; |
| 869 | |
| 870 | #if defined(JSONCONS_HAS_STD_VARIANT) |
| 871 | validate_before_decode_example(); |
| 872 | #endif |
| 873 | defaults_example(); |
| 874 | optional_format_example(); |
| 875 | |
| 876 | draft_201212_example(); |
| 877 | draft_201909_example(); |
| 878 | draft_07_example(); |
| 879 | |
| 880 | cross_schema_example(); |
| 881 | |
| 882 | resolve_uri_example(); |
| 883 | |
| 884 | validate_with_patch_to_fix_document(); // (since 1.7.0) |
| 885 | validate_usimg_pmr_allocator(); // (since 1.7.0) |
| 886 | |
| 887 | walk_example(); |
| 888 | std::cout << "_____________________________\n\n"; |
| 889 | walk_example2(); // (since 1.7.0) |
| 890 | |
| 891 | std::cout << "\n"; |
| 892 | } |
| 893 |
nothing calls this directly
no test coverage detected