Skip to content

Commit 4331d62

Browse files
committed
Updated readme
1 parent 4af0c46 commit 4331d62

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Opis Json Schema
2-
Copyright 2018-2020 Zindex Software
2+
Copyright 2018-2021 Zindex Software
33

44
This product includes software developed at
55
Zindex Software (http://zindex.software).

README.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,22 @@ Opis JSON Schema
88
Validate JSON documents
99
-----------
1010

11-
**Opis JSON Schema** is a PHP implementation for the [JSON Schema] standard (draft-07 and draft-06), that
11+
**Opis JSON Schema** is a PHP implementation for the [JSON Schema] standard (draft-2020-12, draft-2019-09, draft-07 and draft-06), that
1212
will help you validate all sorts of JSON documents, whether they are configuration files or a set
1313
of data sent to an RESTful API endpoint.
1414

1515

1616
**The library's key features:**
1717

18-
- Fast validation (you can set maximum number of errors for a validation)
19-
- Custom schema document [loaders](https://docs.opis.io/json-schema/1.x/php-loader.html)
20-
- Support for [if-then-else](https://docs.opis.io/json-schema/1.x/conditional-subschemas.html#if-then-else)
21-
- All [string formats](https://docs.opis.io/json-schema/1.x/formats.html#provided-formats) are supported
22-
- Support for custom [formats](https://docs.opis.io/json-schema/1.x/php-format.html)
23-
- Support for custom [media types](https://docs.opis.io/json-schema/1.x/php-media-type.html)
24-
- Support for [default value](https://docs.opis.io/json-schema/1.x/default-value.html)
25-
- Support for custom variables using [`$vars` keyword](https://docs.opis.io/json-schema/1.x/variables.html)
26-
- Support for custom filters using [`$filters` keyword](https://docs.opis.io/json-schema/1.x/filters.html)
27-
- Advanced schema reuse using [`$map` keyword](https://docs.opis.io/json-schema/1.x/mappers.html)
28-
- Support for [json pointers](https://docs.opis.io/json-schema/1.x/pointers.html) (absolute and relative pointers)
29-
- Support for [URI templates](https://docs.opis.io/json-schema/1.x/uri-template.html)
18+
- Supports all keywords from all drafts (draft-2020-12 down to draft-06)
19+
- Support for custom PHP filters using [`$filters` keyword](https://docs.opis.io/json-schema/2.x/filters.html)
20+
- Advanced schema reuse using [`$map` keyword](https://docs.opis.io/json-schema/2.x/mappers.html)
21+
- Intuitive schema composition using [slots](https://docs.opis.io/json-schema/2.x/slots.html)
22+
- Support for absolute & relative [json pointers](https://docs.opis.io/json-schema/2.x/pointers.html)
23+
- Support for [URI templates](https://docs.opis.io/json-schema/2.x/uri-template.html)
24+
- Support for [`$data` keyword](https://docs.opis.io/json-schema/2.x/data-keyword.html)
25+
- Support for [casting](https://docs.opis.io/json-schema/2.x/pragma.html#cast)
26+
- Support for custom [formats](https://docs.opis.io/json-schema/2.x/php-format.html) and [media types](https://docs.opis.io/json-schema/2.x/php-media-type.html)
3027

3128
### Documentation
3229

@@ -40,7 +37,7 @@ the library's own API.
4037

4138
### Requirements
4239

43-
* PHP ^7.4|^8.0
40+
* PHP ^7.4 || ^8.0
4441

4542
## Installation
4643

@@ -56,7 +53,7 @@ Or you could directly reference it into your `composer.json` file as a dependenc
5653
```json
5754
{
5855
"require": {
59-
"opis/json-schema": "2020.x-dev"
56+
"opis/json-schema": "^2.0"
6057
}
6158
}
6259
```
@@ -65,4 +62,4 @@ Or you could directly reference it into your `composer.json` file as a dependenc
6562
[apache_license]: https://www.apache.org/licenses/LICENSE-2.0 "Apache License"
6663
[Packagist]: https://packagist.org/packages/opis/json-schema "Packagist"
6764
[Composer]: https://getcomposer.org "Composer"
68-
[JSON Schema]: http://json-schema.org/ "JSON Schema"
65+
[JSON Schema]: http://json-schema.org/ "JSON Schema"

0 commit comments

Comments
 (0)