yuppi 1.0.0 → 1.0.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 +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -184,6 +184,7 @@ Validate the properties with your Yuppi schema.
|
|
|
184
184
|
> email: {
|
|
185
185
|
> type: "string",
|
|
186
186
|
> pattern: Patterns.Email,
|
|
187
|
+
> lowercase: true,
|
|
187
188
|
> nullable: false,
|
|
188
189
|
> required: true
|
|
189
190
|
> }
|
|
@@ -207,7 +208,7 @@ Validate the properties with your Yuppi schema.
|
|
|
207
208
|
> */
|
|
208
209
|
> })
|
|
209
210
|
> .catch((error: YuppiTypes.ValidationError) => {
|
|
210
|
-
> console.log(properties); // "Field email must match the required pattern ^[
|
|
211
|
+
> console.log(properties); // "Field email must match the required pattern ^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
|
|
211
212
|
> });
|
|
212
213
|
> ```
|
|
213
214
|
|
|
@@ -292,6 +293,7 @@ Convert your Yuppi schema into [JSON Schema](https://json-schema.org).
|
|
|
292
293
|
> email: {
|
|
293
294
|
> type: "string",
|
|
294
295
|
> pattern: Patterns.Email,
|
|
296
|
+
> lowercase: true,
|
|
295
297
|
> nullable: false,
|
|
296
298
|
> required: true
|
|
297
299
|
> }
|
|
@@ -316,7 +318,7 @@ Convert your Yuppi schema into [JSON Schema](https://json-schema.org).
|
|
|
316
318
|
> },
|
|
317
319
|
> email: {
|
|
318
320
|
> type: "string",
|
|
319
|
-
> pattern: "^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]
|
|
321
|
+
> pattern: "^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$",
|
|
320
322
|
> }
|
|
321
323
|
> },
|
|
322
324
|
> required: [
|