From c30a1e9e4afb037940a07164b1e488b11382371f Mon Sep 17 00:00:00 2001 From: Agnivesh Chaubey Date: Tue, 20 Feb 2024 13:03:32 +0530 Subject: [PATCH] review: addressed the suggested changes --- .../2020-12/validation/exclusiveMaximum.markdown | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/content/2020-12/validation/exclusiveMaximum.markdown b/content/2020-12/validation/exclusiveMaximum.markdown index c218dba0..c1762647 100644 --- a/content/2020-12/validation/exclusiveMaximum.markdown +++ b/content/2020-12/validation/exclusiveMaximum.markdown @@ -21,7 +21,7 @@ related: The `exclusiveMaximum` keyword is used to set an exclusive upper limit on numeric instances. It specifies that the numeric value being validated must be strictly less than (not equal to) the provided maximum value. -* Applies only to number data types (integers and floats). +* Applies only to number data types (integers and real numbers). * Validation succeeds if the number is strictly less than the specified `exclusiveMaximum`. ## Examples @@ -46,16 +46,16 @@ The `exclusiveMaximum` keyword is used to set an exclusive upper limit on numeri 10 {{}} -{{}} +{{}} { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": [ "string", "number" ], - "exclusiveMaximum": 20 + "exclusiveMaximum": 20.99 } {{}} -{{}} -15 +{{}} +15.67 {{}} {{}} @@ -66,6 +66,10 @@ true "Hello World!" {{}} +{{}} +29 +{{}} + {{}} { "$schema": "https://json-schema.org/draft/2020-12/schema",