-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvalidator.html
More file actions
50 lines (48 loc) · 1.08 KB
/
Copy pathvalidator.html
File metadata and controls
50 lines (48 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<html>
<head>
<script type="text/javascript" src="jsonschema.js"></script>
<script type="text/javascript" src="functions.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="interface.js"></script>
<link rel="stylesheet" type="text/css" href="interface.css" />
</head>
<body>
<table>
<tr>
<td>
<h3>JSON</h3>
<textarea class='campo' id='json'>
{
"a":1,
"b":"thing I know is that",
"c":"I do exist"
} </textarea>
</td>
<td rowspan="2" valign="top">
<h3>Schema:</h3>
<textarea class='campo' id='schema'>
{
"type":"object",
"properties":{
"a":{"type":"number"},
"b":{"type":"string"}
},
"additionalProperties":false
}
</textarea>
</td>
</tr>
</table>
<button id='bt-validate-js' class='botao'>
Validate With Js
</button>
<button id='bt-validate-php' class='botao'>
Validate With PHP
</button>
<button id='bt-validate-php-type-cast-mode' class='botao'>
Validate With PHP (type cast mode)
</button>
<br/>
<div id='resultados'>...</div>
</body>
</html>