You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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)
30
27
31
28
### Documentation
32
29
@@ -40,7 +37,7 @@ the library's own API.
40
37
41
38
### Requirements
42
39
43
-
* PHP ^7.4|^8.0
40
+
* PHP ^7.4 || ^8.0
44
41
45
42
## Installation
46
43
@@ -56,7 +53,7 @@ Or you could directly reference it into your `composer.json` file as a dependenc
56
53
```json
57
54
{
58
55
"require": {
59
-
"opis/json-schema": "2020.x-dev"
56
+
"opis/json-schema": "^2.0"
60
57
}
61
58
}
62
59
```
@@ -65,4 +62,4 @@ Or you could directly reference it into your `composer.json` file as a dependenc
0 commit comments