aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/schema/requests/group
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/admin/schema/requests/group')
-rwxr-xr-xmain/app/sprinkles/admin/schema/requests/group/create.yaml35
-rwxr-xr-xmain/app/sprinkles/admin/schema/requests/group/edit-info.yaml27
-rwxr-xr-xmain/app/sprinkles/admin/schema/requests/group/get-by-slug.yaml6
3 files changed, 68 insertions, 0 deletions
diff --git a/main/app/sprinkles/admin/schema/requests/group/create.yaml b/main/app/sprinkles/admin/schema/requests/group/create.yaml
new file mode 100755
index 0000000..8f5261c
--- /dev/null
+++ b/main/app/sprinkles/admin/schema/requests/group/create.yaml
@@ -0,0 +1,35 @@
+---
+name:
+ validators:
+ required:
+ label: "&NAME"
+ message: VALIDATE.REQUIRED
+ length:
+ label: "&NAME"
+ min: 1
+ max: 255
+ message: VALIDATE.LENGTH_RANGE
+ transformations:
+ - trim
+slug:
+ validators:
+ required:
+ label: "&SLUG"
+ message: VALIDATE.REQUIRED
+ length:
+ label: "&SLUG"
+ min: 1
+ max: 255
+ message: VALIDATE.LENGTH_RANGE
+ transformations:
+ - trim
+icon:
+ validators:
+ length:
+ label: "&ICON"
+ min: 1
+ max: 100
+ message: VALIDATE.LENGTH_RANGE
+ required:
+ message: VALIDATE.REQUIRED
+description:
diff --git a/main/app/sprinkles/admin/schema/requests/group/edit-info.yaml b/main/app/sprinkles/admin/schema/requests/group/edit-info.yaml
new file mode 100755
index 0000000..6aa3f28
--- /dev/null
+++ b/main/app/sprinkles/admin/schema/requests/group/edit-info.yaml
@@ -0,0 +1,27 @@
+---
+name:
+ validators:
+ length:
+ label: "&NAME"
+ min: 1
+ max: 255
+ message: VALIDATE.LENGTH_RANGE
+ transformations:
+ - trim
+slug:
+ validators:
+ length:
+ label: "&SLUG"
+ min: 1
+ max: 255
+ message: VALIDATE.LENGTH_RANGE
+ transformations:
+ - trim
+icon:
+ validators:
+ length:
+ label: "&ICON"
+ min: 1
+ max: 100
+ message: VALIDATE.LENGTH_RANGE
+description:
diff --git a/main/app/sprinkles/admin/schema/requests/group/get-by-slug.yaml b/main/app/sprinkles/admin/schema/requests/group/get-by-slug.yaml
new file mode 100755
index 0000000..2aa41b5
--- /dev/null
+++ b/main/app/sprinkles/admin/schema/requests/group/get-by-slug.yaml
@@ -0,0 +1,6 @@
+---
+slug:
+ validators:
+ required:
+ label: "&SLUG"
+ message: VALIDATE.REQUIRED