Skip to content

Commit 5fe0224

Browse files
author
Justin Rainbow
committed
Moving selenium tests and adding readme
1 parent bfbba5a commit 5fe0224

22 files changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# JSON Schema for PHP
2+
3+
## Usage
4+
5+
$json = json_decode($input_json);
6+
$schema = json_decode($input_schema);
7+
$result = JsonSchema::validate($json, $schema);
8+
9+
if ($result->valid) {
10+
die('success!');
11+
}
12+
else {
13+
die('fail...');
14+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)