File: README.md

package info (click to toggle)
php-json-schema 6.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,216 kB
  • sloc: php: 9,403; makefile: 153; python: 28; sh: 13
file content (14 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## JsonSchema\Validator Demo

This demo script uses the example from the root README.md and provides sample JSON files for testing `JsonSchema\Validator`.

To change or replace the JSON schema document, please edit `/path/to/json-schema/demo/schema.json`.

To change or replace the JSON document that is validated, please edit `/path/to/json-schema/demo/data.json`.

To run the demo, change the path in the following example and run it in your terminal.

```
cd /path/to/json-schema/demo
php demo.php // The supplied JSON validates against the schema.
```