Lines Matching refs:schema
43 static bool ucl_schema_validate (const ucl_object_t *schema,
140 ucl_schema_validate_object (const ucl_object_t *schema, in ucl_schema_validate_object() argument
151 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_object()
239 prop = ucl_object_lookup (schema, "properties"); in ucl_schema_validate_object()
245 pat = ucl_object_lookup (schema, "patternProperties"); in ucl_schema_validate_object()
291 ucl_schema_validate_number (const ucl_object_t *schema, in ucl_schema_validate_number() argument
300 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_number()
322 test = ucl_object_lookup (schema, "exclusiveMaximum"); in ucl_schema_validate_number()
338 test = ucl_object_lookup (schema, "exclusiveMinimum"); in ucl_schema_validate_number()
357 ucl_schema_validate_string (const ucl_object_t *schema, in ucl_schema_validate_string() argument
368 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_string()
471 ucl_schema_validate_array (const ucl_object_t *schema, in ucl_schema_validate_array() argument
483 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_array()
870 ucl_schema_validate_values (const ucl_object_t *schema, const ucl_object_t *obj, in ucl_schema_validate_values() argument
876 elt = ucl_object_lookup (schema, "maxValues"); in ucl_schema_validate_values()
892 elt = ucl_object_lookup (schema, "minValues"); in ucl_schema_validate_values()
916 ucl_schema_validate (const ucl_object_t *schema, in ucl_schema_validate() argument
926 if (schema->type != UCL_OBJECT) { in ucl_schema_validate()
927 ucl_schema_create_error (err, UCL_SCHEMA_INVALID_SCHEMA, schema, in ucl_schema_validate()
929 ucl_object_type_to_string (schema->type)); in ucl_schema_validate()
937 if (!ucl_schema_validate_values (schema, obj, err)) { in ucl_schema_validate()
941 if (!ucl_schema_validate (schema, cur, false, err, root, external_refs)) { in ucl_schema_validate()
948 elt = ucl_object_lookup (schema, "enum"); in ucl_schema_validate()
955 elt = ucl_object_lookup (schema, "allOf"); in ucl_schema_validate()
966 elt = ucl_object_lookup (schema, "anyOf"); in ucl_schema_validate()
984 elt = ucl_object_lookup (schema, "oneOf"); in ucl_schema_validate()
1002 elt = ucl_object_lookup (schema, "not"); in ucl_schema_validate()
1013 elt = ucl_object_lookup (schema, "$ref"); in ucl_schema_validate()
1028 elt = ucl_object_lookup (schema, "type"); in ucl_schema_validate()
1035 return ucl_schema_validate_object (schema, obj, err, root, external_refs); in ucl_schema_validate()
1038 return ucl_schema_validate_array (schema, obj, err, root, external_refs); in ucl_schema_validate()
1042 return ucl_schema_validate_number (schema, obj, err); in ucl_schema_validate()
1045 return ucl_schema_validate_string (schema, obj, err); in ucl_schema_validate()
1055 ucl_object_validate (const ucl_object_t *schema, in ucl_object_validate() argument
1058 return ucl_object_validate_root_ext (schema, obj, schema, NULL, err); in ucl_object_validate()
1062 ucl_object_validate_root (const ucl_object_t *schema, in ucl_object_validate_root() argument
1067 return ucl_object_validate_root_ext (schema, obj, root, NULL, err); in ucl_object_validate_root()
1071 ucl_object_validate_root_ext (const ucl_object_t *schema, in ucl_object_validate_root_ext() argument
1084 ret = ucl_schema_validate (schema, obj, true, err, root, ext_refs); in ucl_object_validate_root_ext()