From 75e214f2ddb3c8bdd0f266521dd70918f7cd4bd5 Mon Sep 17 00:00:00 2001 From: tatomyr Date: Sun, 9 Jun 2024 14:46:41 +0300 Subject: [PATCH] update extensions syntax --- extensions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions.md b/extensions.md index d71c383..8b2f8c0 100644 --- a/extensions.md +++ b/extensions.md @@ -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: @@ -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)" } ```