yuppi 1.1.1 → 1.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.
package/README.md CHANGED
@@ -198,9 +198,7 @@ Validate the properties with your Yuppi schema.
198
198
  > };
199
199
  >
200
200
  > try {
201
- > const validation = Yupp.validate(schema, properties);
202
- >
203
- > console.log(properties);
201
+ > Yupp.validate(schema, properties);
204
202
  > /*
205
203
  > {
206
204
  > display_name: "Fırat",
@@ -182,8 +182,8 @@ var YuppiOptionsDefault = {
182
182
  min: "Field {path} must be greater than or equal to {min}",
183
183
  max: "Field {path} must be less than or equal to {max}",
184
184
  integer: "Field {path} must be an integer",
185
- positive: "Field {path} must be a positive number",
186
- negative: "Field {path} must be a negative number"
185
+ positive: "Field {path} must be a positive",
186
+ negative: "Field {path} must be a negative"
187
187
  },
188
188
  boolean: {
189
189
  type: "Field {path} must be a boolean"
@@ -148,8 +148,8 @@ var YuppiOptionsDefault = {
148
148
  min: "Field {path} must be greater than or equal to {min}",
149
149
  max: "Field {path} must be less than or equal to {max}",
150
150
  integer: "Field {path} must be an integer",
151
- positive: "Field {path} must be a positive number",
152
- negative: "Field {path} must be a negative number"
151
+ positive: "Field {path} must be a positive",
152
+ negative: "Field {path} must be a negative"
153
153
  },
154
154
  boolean: {
155
155
  type: "Field {path} must be a boolean"
@@ -40,8 +40,8 @@ var YuppiOptionsDefault = {
40
40
  min: "Field {path} must be greater than or equal to {min}",
41
41
  max: "Field {path} must be less than or equal to {max}",
42
42
  integer: "Field {path} must be an integer",
43
- positive: "Field {path} must be a positive number",
44
- negative: "Field {path} must be a negative number"
43
+ positive: "Field {path} must be a positive",
44
+ negative: "Field {path} must be a negative"
45
45
  },
46
46
  boolean: {
47
47
  type: "Field {path} must be a boolean"
@@ -16,8 +16,8 @@ var YuppiOptionsDefault = {
16
16
  min: "Field {path} must be greater than or equal to {min}",
17
17
  max: "Field {path} must be less than or equal to {max}",
18
18
  integer: "Field {path} must be an integer",
19
- positive: "Field {path} must be a positive number",
20
- negative: "Field {path} must be a negative number"
19
+ positive: "Field {path} must be a positive",
20
+ negative: "Field {path} must be a negative"
21
21
  },
22
22
  boolean: {
23
23
  type: "Field {path} must be a boolean"
package/dist/main.js CHANGED
@@ -185,8 +185,8 @@ var YuppiOptionsDefault = {
185
185
  min: "Field {path} must be greater than or equal to {min}",
186
186
  max: "Field {path} must be less than or equal to {max}",
187
187
  integer: "Field {path} must be an integer",
188
- positive: "Field {path} must be a positive number",
189
- negative: "Field {path} must be a negative number"
188
+ positive: "Field {path} must be a positive",
189
+ negative: "Field {path} must be a negative"
190
190
  },
191
191
  boolean: {
192
192
  type: "Field {path} must be a boolean"
package/dist/main.mjs CHANGED
@@ -154,8 +154,8 @@ var YuppiOptionsDefault = {
154
154
  min: "Field {path} must be greater than or equal to {min}",
155
155
  max: "Field {path} must be less than or equal to {max}",
156
156
  integer: "Field {path} must be an integer",
157
- positive: "Field {path} must be a positive number",
158
- negative: "Field {path} must be a negative number"
157
+ positive: "Field {path} must be a positive",
158
+ negative: "Field {path} must be a negative"
159
159
  },
160
160
  boolean: {
161
161
  type: "Field {path} must be a boolean"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuppi",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Schemas that can be converted to Yup and JSON Schema.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/keift/yuppi",