1 #ifndef JSON_SCHEMA_H 2 #define JSON_SCHEMA_H 3 4 #include <json.h> 5 6 #define JSON_SCHEMA_VERSION "https://json-schema.org/draft/2020-12/schema" 7 #define JSON_ERROR_MSG_MAX_LEN 512 8 9 int validate_schema(json_object *schema, char *schema_directory, 10 json_object *object, char *error_message); 11 int validate_schema_from_file(const char *schema_file, json_object *object, 12 char *error_message); 13 void validate_schema_debug_enable(); 14 void validate_schema_debug_disable(); 15 16 #endif 17