Skip to content

Commit 622d926

Browse files
committed
convert request schema from json to yaml
1 parent 0c37ab3 commit 622d926

49 files changed

Lines changed: 609 additions & 855 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
- Added support for the Redis cache driver and refactored the cache config values.
3232
- Added user and session cache.
3333
- Common log file for db queries, auth checks, smtp, errors, and debug messages (#709).
34+
- Use YAML as default format for request schema (#690)
3435

3536
See [http://learn.userfrosting.com/upgrading/40-to-41](Upgrading 4.0.x to 4.1.x documentation) for complete list of changes and breaking changes.
3637

app/sprinkles/account/schema/account-settings.json

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
passwordcheck:
3+
validators:
4+
required:
5+
message: PASSWORD.CONFIRM_CURRENT
6+
email:
7+
validators:
8+
required:
9+
label: "&EMAIL"
10+
message: VALIDATE.REQUIRED
11+
length:
12+
label: "&EMAIL"
13+
min: 1
14+
max: 150
15+
message: VALIDATE.LENGTH_RANGE
16+
email:
17+
message: VALIDATE.INVALID_EMAIL
18+
password:
19+
validators:
20+
length:
21+
label: "&PASSWORD"
22+
min: 12
23+
max: 100
24+
message: VALIDATE.LENGTH_RANGE
25+
passwordc:
26+
validators:
27+
matches:
28+
field: password
29+
label: "&PASSWORD.CONFIRM"
30+
message: VALIDATE.PASSWORD_MISMATCH
31+
length:
32+
label: "&PASSWORD.CONFIRM"
33+
min: 12
34+
max: 100
35+
message: VALIDATE.LENGTH_RANGE

app/sprinkles/account/schema/account-verify.json

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
token:
3+
validators:
4+
required:
5+
label: validation token
6+
message: VALIDATION.REQUIRED

app/sprinkles/account/schema/check-username.json

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
user_name:
3+
validators:
4+
length:
5+
label: "&USERNAME"
6+
min: 1
7+
max: 50
8+
message: VALIDATE.LENGTH_RANGE
9+
no_leading_whitespace:
10+
label: "&USERNAME"
11+
message: VALIDATE.NO_LEAD_WS
12+
no_trailing_whitespace:
13+
label: "&USERNAME"
14+
message: VALIDATE.NO_TRAIL_WS
15+
username:
16+
label: "&USERNAME"
17+
message: VALIDATE.USERNAME

app/sprinkles/account/schema/deny-password.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
token:
3+
validators:
4+
required:
5+
message: PASSWORD.FORGET.INVALID

app/sprinkles/account/schema/forgot-password.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)