@based/schema 5.1.1 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -47
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  ## Display & format WIP
4
4
 
5
- Using `display` will not validate or transform and will purely change how the value is shown in UI and API.
6
-
7
5
  Use `format` to specify in which format the value has to represented and modified. This may impose some validation and will influence how the UI shows the value.
8
6
 
9
7
  ### For example
@@ -15,16 +13,13 @@ Use `format` to specify in which format the value has to represented and modifie
15
13
  props: {
16
14
  price: {
17
15
  type: 'int32',
18
- display: 'euro',
19
16
  },
20
17
  authorEmail: {
21
18
  type: 'string',
22
19
  format: 'email',
23
- display: 'lowercase',
24
20
  },
25
21
  lastModified: {
26
22
  type: 'timestamp',
27
- display: 'date-time'
28
23
  }
29
24
  }
30
25
  }
@@ -32,47 +27,6 @@ Use `format` to specify in which format the value has to represented and modifie
32
27
  }
33
28
  ```
34
29
 
35
- ### Display options
36
-
37
- #### Timestamp
38
-
39
- ```
40
- 'date',
41
- 'date-time',
42
- 'date-time-text',
43
- 'human',
44
- 'time',
45
- 'time-precise',
46
- ```
47
-
48
- #### Number
49
-
50
- ```
51
- 'short',
52
- 'human',
53
- 'ratio',
54
- 'bytes',
55
- 'euro',
56
- 'dollar',
57
- 'pound',
58
-
59
- 'round-short',
60
- 'round-human',
61
- 'round-ratio',
62
- 'round-bytes',
63
- 'round-euro',
64
- 'round-dollar',
65
- 'round-pound',
66
- ```
67
-
68
- #### String
69
-
70
- ```
71
- 'lowercase',
72
- 'uppercase',
73
- 'capitalize',
74
- ```
75
-
76
30
  ### Format options
77
31
 
78
32
  #### String
@@ -135,7 +89,7 @@ Use `format` to specify in which format the value has to represented and modifie
135
89
  'mimeType',
136
90
  'latLong',
137
91
  'slug',
138
- 'strongPassword',
92
+ 'password',
139
93
  'taxID',
140
94
  'licensePlate',
141
95
  'VAT',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@based/schema",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "README.md",