yuppi 1.0.1 → 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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -208,7 +208,7 @@ Validate the properties with your Yuppi schema.
|
|
|
208
208
|
> */
|
|
209
209
|
> })
|
|
210
210
|
> .catch((error: YuppiTypes.ValidationError) => {
|
|
211
|
-
> 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,}$"
|
|
212
212
|
> });
|
|
213
213
|
> ```
|
|
214
214
|
|
|
@@ -318,7 +318,7 @@ Convert your Yuppi schema into [JSON Schema](https://json-schema.org).
|
|
|
318
318
|
> },
|
|
319
319
|
> email: {
|
|
320
320
|
> type: "string",
|
|
321
|
-
> pattern: "^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]
|
|
321
|
+
> pattern: "^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$",
|
|
322
322
|
> }
|
|
323
323
|
> },
|
|
324
324
|
> required: [
|