This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ A JS module for simplifying complexly-structured-data validation.
99## Installation:
1010
1111``` javascript
12- import {DataValidator } from ' https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.1 /data-validator.min.js' ;
12+ import {DataValidator } from ' https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.2 /data-validator.min.js' ;
1313
1414// OR
1515
16- const {DataValidator } = await import (' https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.1 /data-validator.min.js' );
16+ const {DataValidator } = await import (' https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.2 /data-validator.min.js' );
1717```
1818
1919----
@@ -56,7 +56,7 @@ const {DataValidator} = await import('https://cdn.jsdelivr.net/gh/anshu-krishna/
5656``` html
5757<script type =" module" >
5858 // Load the DataValidator module;
59- import {DataValidator as DV } from ' https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.1 /data-validator.min.js' ;
59+ import {DataValidator as DV } from ' https://cdn.jsdelivr.net/gh/anshu-krishna/JS-Data-Validator@1.2 /data-validator.min.js' ;
6060
6161 // This is the expected structure
6262 const structure = {
@@ -180,7 +180,6 @@ Data matches the structure:
180180 ]
181181}
182182
183-
184183Data doesnot match the structure:
185184[name]: Missing
186185[age]: Expected range [18, 45]
Original file line number Diff line number Diff line change 66 "email" : " anshu.krishna5@gmail.com"
77 },
88 "license" : " MIT" ,
9- "version" : " 1.1 "
9+ "version" : " 1.2 "
1010}
You can’t perform that action at this time.
0 commit comments