diff --git a/src/__fixtures__/default-schema.json b/src/__fixtures__/default-schema.json index 013e62f4..6aef0ec2 100644 --- a/src/__fixtures__/default-schema.json +++ b/src/__fixtures__/default-schema.json @@ -9,7 +9,10 @@ "age": { "type": "number", "minimum": 0, - "maximum": 150 + "maximum": 150, + "multipleOf": 10, + "exclusiveMinimum": true, + "exclusiveMaximum": true }, "completed_at": { "type": "string", diff --git a/src/components/shared/Validations.tsx b/src/components/shared/Validations.tsx index da8bd314..cd59ffdc 100644 --- a/src/components/shared/Validations.tsx +++ b/src/components/shared/Validations.tsx @@ -51,8 +51,8 @@ export const Validations: React.FunctionComponent = ({ required, v return (
-
{key}:
-
{elem}
+
{key}:
+
{elem}
); })} diff --git a/src/utils/__tests__/__snapshots__/renderSchema.spec.ts.snap b/src/utils/__tests__/__snapshots__/renderSchema.spec.ts.snap index 1a0ecdf1..c1daa270 100644 --- a/src/utils/__tests__/__snapshots__/renderSchema.spec.ts.snap +++ b/src/utils/__tests__/__snapshots__/renderSchema.spec.ts.snap @@ -600,8 +600,11 @@ Array [ }, "properties": Object { "age": Object { + "exclusiveMaximum": true, + "exclusiveMinimum": true, "maximum": 150, "minimum": 0, + "multipleOf": 10, "type": "number", }, "completed_at": Object { @@ -713,8 +716,11 @@ Array [ "required": true, "type": "number", "validations": Object { + "exclusiveMaximum": true, + "exclusiveMinimum": true, "maximum": 150, "minimum": 0, + "multipleOf": 10, }, }, "name": "",