From 72b1b95eac98a0c1fd8f8ad550fa8b1466727a29 Mon Sep 17 00:00:00 2001 From: jy95 Date: Sun, 31 Dec 2023 20:08:15 +0100 Subject: [PATCH] feat: display json-pointer and level in SchemaItem --- .../__snapshots__/array.test.tsx.snap | 90 +++++++-- .../__snapshots__/constructor.test.tsx.snap | 25 ++- .../__snapshots__/corner_cases.test.tsx.snap | 25 ++- .../generateFriendlyName.test.tsx.snap | 135 ++++++++++--- .../generic_keywords.test.tsx.snap | 5 +- .../__snapshots__/object.test.tsx.snap | 130 ++++++++++--- .../__snapshots__/refs.test.tsx.snap | 15 +- .../schema_conditionally.test.tsx.snap | 180 ++++++++++++++---- .../__snapshots__/string.test.tsx.snap | 105 ++++++++-- .../components/SchemaItem/SchemaItem.tsx | 5 +- 10 files changed, 572 insertions(+), 143 deletions(-) diff --git a/__tests__/JSONSchemaViewer/__snapshots__/array.test.tsx.snap b/__tests__/JSONSchemaViewer/__snapshots__/array.test.tsx.snap index 5cba6132..80774d5f 100644 --- a/__tests__/JSONSchemaViewer/__snapshots__/array.test.tsx.snap +++ b/__tests__/JSONSchemaViewer/__snapshots__/array.test.tsx.snap @@ -61,7 +61,10 @@ exports[`JSONSchemaViewer - Array type test 1 1`] = ` array