Skip to content

Commit

Permalink
update extensions syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed Jun 9, 2024
1 parent 35cc68d commit 75e214f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ They are denoted by the double colon notation.

### String Formats

String formats can include, among others, `uuid`, `date-time`, `uri`, `email`.
String formats can include, among others, `date-time`, `email`, `uuid`, `uri`.
The list of possible string formats should correspond to the one described in [JSONSchema string formats](https://json-schema.org/understanding-json-schema/reference/string.html#format).

String formats could be used both in keys and values:
Expand All @@ -42,13 +42,13 @@ String formats could be used both in keys and values:

### Number Formats

Number formats are: `integer`, `minimum`, `maximum`, `exclusive-minimum`, `exclusive-maximum`.
Number formats are: `integer`, `min`, `max`, `x-min` (for exclusive minimum), `x-max` (for exclusive maximum).
Formats could be sequentially chained.
The range formats require a number value in parenthesis:

```json
{
"age": "number::integer::minimum(18)"
"age": "number::integer::min(18)"
}
```

Expand Down

0 comments on commit 75e214f

Please sign in to comment.