Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
trigger: Fix the ucl schema
Emmanuel Vadot committed 5 years ago
commit 8404862c9efd4e71df7c87e8d5f457f2f90de826
parent e135dd4
1 file changed +25 -25
modified libpkg/triggers.c
@@ -70,40 +70,40 @@ trigger_open_schema(void)
		"    description: { type = string };"
		"    path: { "
		"      type = array; "
-
		"         item = { type = string };"
+
		"      item = { type = string };"
		"    };"
-
		"    path_glob: ( "
+
		"    path_glob: { "
		"      type = array; "
		"      item = { type = string };"
		"    };"
-
		"    path_regexp: ( "
+
		"    path_regexp: { "
		"      type = array; "
		"      item = { type = string };"
		"    };"
-
		"  };"
-
		"  cleanup = { "
-
		"     type = object; "
-
		"     properties = {"
-
		"       type = { "
-
		"         type = string,"
-
		"         enum: [lua, shell];"
+
		"    cleanup = { "
+
		"      type = object; "
+
		"      properties = {"
+
		"        type = { "
+
		"          type = string,"
+
		"          enum: [lua, shell];"
		"        };"
-
		"       script = { type = string };"
-
		"     }; "
-
		"     required = [ type, script ];"
-
		"  };"
-
		"  trigger = { "
-
		"     type = object; "
-
		"     properties = {"
-
		"       type = { "
-
		"         type = string,"
-
		"         enum: [lua, shell];"
+
		"        script = { type = string };"
+
		"      }; "
+
		"      required = [ type, script ];"
+
		"    };"
+
		"    trigger = { "
+
		"      type = object; "
+
		"      properties = {"
+
		"        type = { "
+
		"          type = string,"
+
		"          enum: [lua, shell];"
		"        };"
-
		"       script = { type = string };"
-
		"     }; "
-
		"     required = [ type, script ];"
-
		"  };"
-
		"  required [ description, trigger ];"
+
		"        script = { type = string };"
+
		"      }; "
+
		"      required = [ type, script ];"
+
		"    };"
+
		"  }\n"
+
		"  required = [ description, trigger ];"
		"}";

	parser = ucl_parser_new(UCL_PARSER_NO_FILEVARS);