diff --git a/package.json b/package.json index a54d0b0a..b115b9be 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "dependencies": { "@fortawesome/free-solid-svg-icons": "^5.15.2", "@stoplight/json": "^3.10.0", - "@stoplight/json-schema-tree": "^1.1.2", + "@stoplight/json-schema-tree": "^1.1.3", "@stoplight/mosaic": "^1.0.0-beta.36", "@stoplight/react-error-boundary": "^1.0.0", "classnames": "^2.2.6", diff --git a/src/__fixtures__/references/nested.json b/src/__fixtures__/references/nested.json new file mode 100644 index 00000000..a318cec4 --- /dev/null +++ b/src/__fixtures__/references/nested.json @@ -0,0 +1,21 @@ +{ + "$ref": "#/__bundled__/repo", + "__bundled__": { + "repo": { + "properties": { + "parent": { + "allOf": [ + { + "$ref": "#/__bundled__/repo" + }, + { + "description": "something" + } + ] + } + }, + "type": "object" + } + } +} + \ No newline at end of file diff --git a/src/__tests__/__snapshots__/index.spec.tsx.snap b/src/__tests__/__snapshots__/index.spec.tsx.snap index 2d6dbe75..65daf60e 100644 --- a/src/__tests__/__snapshots__/index.spec.tsx.snap +++ b/src/__tests__/__snapshots__/index.spec.tsx.snap @@ -3249,6 +3249,65 @@ exports[`HTML Output should match references/base.json 1`] = ` " `; +exports[`HTML Output should match references/nested.json 1`] = ` +"