-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive reference causes problem #252
Comments
When traversing a schema, it keeps track of a Set of "seen" items, but the "get" from the proxy handler returns a new Proxy object for every subschema, whether it has been retrieved previously or not, so the recursively retrieved subschema is a new Proxy and is not in the "seen" Set. On the schemaProxy side, if you create a registry of previously proxied subschemas and reuse them, then the "seen" mechanism seems to work as it should. (With this patch applied, your example does not throw an error) diff --git a/lib/schemaProxy.js b/lib/schemaProxy.js
index 2010be2..338f070 100644
--- a/lib/schemaProxy.js
+++ b/lib/schemaProxy.js
@@ -30,7 +30,7 @@ function loadExamples(file, num = 1) {
}
const handler = ({
- root = '', filename = '.', schemas, parent, slugger,
+ root = '', filename = '.', schemas, subschemas, parent, slugger,
}) => {
const meta = {};
@@ -157,19 +157,29 @@ const handler = ({
}
// console.log('making new proxy from', target, prop, 'receiver', receiver[symbols.id]);
- const subschema = new Proxy(retval, handler({
- root: `${root}/${prop}`,
- parent: receiver,
- filename,
- schemas,
- slugger,
- }));
+ let subschema;
+ if (subschemas.has(retval)) {
+ subschema = subschemas.get(retval);
+ }
+ else {
+ subschema = new Proxy(retval, handler({
+ root: `${root}/${prop}`,
+ parent: receiver,
+ filename,
+ schemas,
+ subschemas,
+ slugger,
+ }));
+
+ subschemas.set(retval, subschema);
+ }
if (subschema[keyword`$id`]) {
// stow away the schema for lookup
// eslint-disable-next-line no-param-reassign
schemas.known[subschema[keyword`$id`]] = subschema;
}
+
return subschema;
}
return retval;
@@ -187,12 +197,13 @@ module.exports.loader = () => {
known: {},
files: {},
};
+ const subschemas = new Map();
const slugger = ghslugger();
return (schema, filename) => {
// console.log('loading', filename);
- const proxied = new Proxy(schema, handler({ filename, schemas, slugger }));
+ const proxied = new Proxy(schema, handler({ filename, schemas, subschemas, slugger }));
schemas.loaded.push(proxied);
if (proxied[keyword`$id`]) {
// stow away the schema for lookup |
Fixes `UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded` on inputs. Solution proposed by @bmaranville in adobe#252 (comment). Updated to work with 7.1.1. Fixes adobe#252
#252 Fix error on inputs with circular references
## [7.1.2](v7.1.1...v7.1.2) (2022-10-06) ### Bug Fixes * **schemaproxy.js:** reuse previously proxied subschemas to fix max call stack size exceeded error ([1388449](1388449)), closes [/github.com//issues/252#issuecomment-806067867](https://github.com//github.com/adobe/jsonschema2md/issues/252/issues/issuecomment-806067867) [#252](#252)
🎉 This issue has been resolved in version 7.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@adobe/jsonschema2md](https://github.com/adobe/jsonschema2md) | [`7.1.5` -> `8.0.1`](https://renovatebot.com/diffs/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>adobe/jsonschema2md (@​adobe/jsonschema2md)</summary> ### [`v8.0.1`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#801-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v8.0.0...v8.0.1) ##### Bug Fixes - **deps:** update external dependencies ([51be972](https://github.com/adobe/jsonschema2md/commit/51be972b9be85852e9a1ee2f9b7e5b7a86351375)) ### [`v8.0.0`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#800-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.6...v8.0.0) ##### Build System - require node 18 ([3b74f4f](https://github.com/adobe/jsonschema2md/commit/3b74f4f31fc16d28c9a4a8f317cdd1beb2242d7e)) ##### BREAKING CHANGES - requires node 18 #### [7.1.6](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) (2024-03-25) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) #### [7.1.5](https://github.com/adobe/jsonschema2md/compare/v7.1.4...v7.1.5) (2022-12-12) ##### Bug Fixes - fix typo in 'any of the following' text ([d7039b9](https://github.com/adobe/jsonschema2md/commit/d7039b9a7a636262c3c6ef86b34d0924329f49f5)) #### [7.1.4](https://github.com/adobe/jsonschema2md/compare/v7.1.3...v7.1.4) (2022-11-29) ##### Bug Fixes - **deps:** update dependency fs-extra to v11 ([291515e](https://github.com/adobe/jsonschema2md/commit/291515edde6791c1502359a30a336671cbcbe608)) #### [7.1.3](https://github.com/adobe/jsonschema2md/compare/v7.1.2...v7.1.3) (2022-11-14) ##### Bug Fixes - **markdown-builder:** guard against `enum` being not an array ([aa46ac4](https://github.com/adobe/jsonschema2md/commit/aa46ac4b4ed5d2c1641bec41b78ec04e1f83944b)), closes [#​458](https://github.com/adobe/jsonschema2md/issues/458) #### [7.1.2](https://github.com/adobe/jsonschema2md/compare/v7.1.1...v7.1.2) (2022-10-06) ##### Bug Fixes - **schemaproxy.js:** reuse previously proxied subschemas to fix max call stack size exceeded error ([1388449](https://github.com/adobe/jsonschema2md/commit/13884491df4c9ecc694f3881e40c1861f7acfdf8)), closes [/github.com/adobe/jsonschema2md/issues/252#issuecomment-806067867](https://github.com//github.com/adobe/jsonschema2md/issues/252/issues/issuecomment-806067867) [#​252](https://github.com/adobe/jsonschema2md/issues/252) #### [7.1.1](https://github.com/adobe/jsonschema2md/compare/v7.1.0...v7.1.1) (2022-05-19) ##### Bug Fixes - **i18n:** align Dutch locale name with standard pattern ([d940cd4](https://github.com/adobe/jsonschema2md/commit/d940cd4114a04f16e3a41db99b095b40e58e4813)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** dutch locale available as command line option ([e8c9304](https://github.com/adobe/jsonschema2md/commit/e8c93048191394e53d2ab823f2b4489e843fbc40)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** support Dutch locale as command line option ([0c0fbbd](https://github.com/adobe/jsonschema2md/commit/0c0fbbdf1e668441e330d9f065a43580e3325be1)) ### [`v7.1.6`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#716-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on sunday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/PKUHPC/SCOW). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@adobe/jsonschema2md](https://github.com/adobe/jsonschema2md) | [`7.1.5` -> `8.0.1`](https://renovatebot.com/diffs/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>adobe/jsonschema2md (@​adobe/jsonschema2md)</summary> ### [`v8.0.1`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#801-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v8.0.0...v8.0.1) ##### Bug Fixes - **deps:** update external dependencies ([51be972](https://github.com/adobe/jsonschema2md/commit/51be972b9be85852e9a1ee2f9b7e5b7a86351375)) ### [`v8.0.0`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#800-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.6...v8.0.0) ##### Build System - require node 18 ([3b74f4f](https://github.com/adobe/jsonschema2md/commit/3b74f4f31fc16d28c9a4a8f317cdd1beb2242d7e)) ##### BREAKING CHANGES - requires node 18 #### [7.1.6](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) (2024-03-25) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) #### [7.1.5](https://github.com/adobe/jsonschema2md/compare/v7.1.4...v7.1.5) (2022-12-12) ##### Bug Fixes - fix typo in 'any of the following' text ([d7039b9](https://github.com/adobe/jsonschema2md/commit/d7039b9a7a636262c3c6ef86b34d0924329f49f5)) #### [7.1.4](https://github.com/adobe/jsonschema2md/compare/v7.1.3...v7.1.4) (2022-11-29) ##### Bug Fixes - **deps:** update dependency fs-extra to v11 ([291515e](https://github.com/adobe/jsonschema2md/commit/291515edde6791c1502359a30a336671cbcbe608)) #### [7.1.3](https://github.com/adobe/jsonschema2md/compare/v7.1.2...v7.1.3) (2022-11-14) ##### Bug Fixes - **markdown-builder:** guard against `enum` being not an array ([aa46ac4](https://github.com/adobe/jsonschema2md/commit/aa46ac4b4ed5d2c1641bec41b78ec04e1f83944b)), closes [#​458](https://github.com/adobe/jsonschema2md/issues/458) #### [7.1.2](https://github.com/adobe/jsonschema2md/compare/v7.1.1...v7.1.2) (2022-10-06) ##### Bug Fixes - **schemaproxy.js:** reuse previously proxied subschemas to fix max call stack size exceeded error ([1388449](https://github.com/adobe/jsonschema2md/commit/13884491df4c9ecc694f3881e40c1861f7acfdf8)), closes [/github.com/adobe/jsonschema2md/issues/252#issuecomment-806067867](https://github.com//github.com/adobe/jsonschema2md/issues/252/issues/issuecomment-806067867) [#​252](https://github.com/adobe/jsonschema2md/issues/252) #### [7.1.1](https://github.com/adobe/jsonschema2md/compare/v7.1.0...v7.1.1) (2022-05-19) ##### Bug Fixes - **i18n:** align Dutch locale name with standard pattern ([d940cd4](https://github.com/adobe/jsonschema2md/commit/d940cd4114a04f16e3a41db99b095b40e58e4813)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** dutch locale available as command line option ([e8c9304](https://github.com/adobe/jsonschema2md/commit/e8c93048191394e53d2ab823f2b4489e843fbc40)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** support Dutch locale as command line option ([0c0fbbd](https://github.com/adobe/jsonschema2md/commit/0c0fbbdf1e668441e330d9f065a43580e3325be1)) ### [`v7.1.6`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#716-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on sunday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/PKUHPC/SCOW). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@adobe/jsonschema2md](https://github.com/adobe/jsonschema2md) | [`7.1.5` -> `8.0.1`](https://renovatebot.com/diffs/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>adobe/jsonschema2md (@​adobe/jsonschema2md)</summary> ### [`v8.0.1`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#801-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v8.0.0...v8.0.1) ##### Bug Fixes - **deps:** update external dependencies ([51be972](https://github.com/adobe/jsonschema2md/commit/51be972b9be85852e9a1ee2f9b7e5b7a86351375)) ### [`v8.0.0`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#800-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.6...v8.0.0) ##### Build System - require node 18 ([3b74f4f](https://github.com/adobe/jsonschema2md/commit/3b74f4f31fc16d28c9a4a8f317cdd1beb2242d7e)) ##### BREAKING CHANGES - requires node 18 #### [7.1.6](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) (2024-03-25) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) #### [7.1.5](https://github.com/adobe/jsonschema2md/compare/v7.1.4...v7.1.5) (2022-12-12) ##### Bug Fixes - fix typo in 'any of the following' text ([d7039b9](https://github.com/adobe/jsonschema2md/commit/d7039b9a7a636262c3c6ef86b34d0924329f49f5)) #### [7.1.4](https://github.com/adobe/jsonschema2md/compare/v7.1.3...v7.1.4) (2022-11-29) ##### Bug Fixes - **deps:** update dependency fs-extra to v11 ([291515e](https://github.com/adobe/jsonschema2md/commit/291515edde6791c1502359a30a336671cbcbe608)) #### [7.1.3](https://github.com/adobe/jsonschema2md/compare/v7.1.2...v7.1.3) (2022-11-14) ##### Bug Fixes - **markdown-builder:** guard against `enum` being not an array ([aa46ac4](https://github.com/adobe/jsonschema2md/commit/aa46ac4b4ed5d2c1641bec41b78ec04e1f83944b)), closes [#​458](https://github.com/adobe/jsonschema2md/issues/458) #### [7.1.2](https://github.com/adobe/jsonschema2md/compare/v7.1.1...v7.1.2) (2022-10-06) ##### Bug Fixes - **schemaproxy.js:** reuse previously proxied subschemas to fix max call stack size exceeded error ([1388449](https://github.com/adobe/jsonschema2md/commit/13884491df4c9ecc694f3881e40c1861f7acfdf8)), closes [/github.com/adobe/jsonschema2md/issues/252#issuecomment-806067867](https://github.com//github.com/adobe/jsonschema2md/issues/252/issues/issuecomment-806067867) [#​252](https://github.com/adobe/jsonschema2md/issues/252) #### [7.1.1](https://github.com/adobe/jsonschema2md/compare/v7.1.0...v7.1.1) (2022-05-19) ##### Bug Fixes - **i18n:** align Dutch locale name with standard pattern ([d940cd4](https://github.com/adobe/jsonschema2md/commit/d940cd4114a04f16e3a41db99b095b40e58e4813)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** dutch locale available as command line option ([e8c9304](https://github.com/adobe/jsonschema2md/commit/e8c93048191394e53d2ab823f2b4489e843fbc40)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** support Dutch locale as command line option ([0c0fbbd](https://github.com/adobe/jsonschema2md/commit/0c0fbbdf1e668441e330d9f065a43580e3325be1)) ### [`v7.1.6`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#716-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on sunday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/PKUHPC/SCOW). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@adobe/jsonschema2md](https://github.com/adobe/jsonschema2md) | [`7.1.5` -> `8.0.1`](https://renovatebot.com/diffs/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@adobe%2fjsonschema2md/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@adobe%2fjsonschema2md/7.1.5/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>adobe/jsonschema2md (@​adobe/jsonschema2md)</summary> ### [`v8.0.1`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#801-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v8.0.0...v8.0.1) ##### Bug Fixes - **deps:** update external dependencies ([51be972](https://github.com/adobe/jsonschema2md/commit/51be972b9be85852e9a1ee2f9b7e5b7a86351375)) ### [`v8.0.0`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#800-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.6...v8.0.0) ##### Build System - require node 18 ([3b74f4f](https://github.com/adobe/jsonschema2md/commit/3b74f4f31fc16d28c9a4a8f317cdd1beb2242d7e)) ##### BREAKING CHANGES - requires node 18 #### [7.1.6](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) (2024-03-25) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) #### [7.1.5](https://github.com/adobe/jsonschema2md/compare/v7.1.4...v7.1.5) (2022-12-12) ##### Bug Fixes - fix typo in 'any of the following' text ([d7039b9](https://github.com/adobe/jsonschema2md/commit/d7039b9a7a636262c3c6ef86b34d0924329f49f5)) #### [7.1.4](https://github.com/adobe/jsonschema2md/compare/v7.1.3...v7.1.4) (2022-11-29) ##### Bug Fixes - **deps:** update dependency fs-extra to v11 ([291515e](https://github.com/adobe/jsonschema2md/commit/291515edde6791c1502359a30a336671cbcbe608)) #### [7.1.3](https://github.com/adobe/jsonschema2md/compare/v7.1.2...v7.1.3) (2022-11-14) ##### Bug Fixes - **markdown-builder:** guard against `enum` being not an array ([aa46ac4](https://github.com/adobe/jsonschema2md/commit/aa46ac4b4ed5d2c1641bec41b78ec04e1f83944b)), closes [#​458](https://github.com/adobe/jsonschema2md/issues/458) #### [7.1.2](https://github.com/adobe/jsonschema2md/compare/v7.1.1...v7.1.2) (2022-10-06) ##### Bug Fixes - **schemaproxy.js:** reuse previously proxied subschemas to fix max call stack size exceeded error ([1388449](https://github.com/adobe/jsonschema2md/commit/13884491df4c9ecc694f3881e40c1861f7acfdf8)), closes [/github.com/adobe/jsonschema2md/issues/252#issuecomment-806067867](https://github.com//github.com/adobe/jsonschema2md/issues/252/issues/issuecomment-806067867) [#​252](https://github.com/adobe/jsonschema2md/issues/252) #### [7.1.1](https://github.com/adobe/jsonschema2md/compare/v7.1.0...v7.1.1) (2022-05-19) ##### Bug Fixes - **i18n:** align Dutch locale name with standard pattern ([d940cd4](https://github.com/adobe/jsonschema2md/commit/d940cd4114a04f16e3a41db99b095b40e58e4813)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** dutch locale available as command line option ([e8c9304](https://github.com/adobe/jsonschema2md/commit/e8c93048191394e53d2ab823f2b4489e843fbc40)), closes [#​426](https://github.com/adobe/jsonschema2md/issues/426) - **i18n:** support Dutch locale as command line option ([0c0fbbd](https://github.com/adobe/jsonschema2md/commit/0c0fbbdf1e668441e330d9f065a43580e3325be1)) ### [`v7.1.6`](https://github.com/adobe/jsonschema2md/blob/HEAD/CHANGELOG.md#716-2024-03-25) [Compare Source](https://github.com/adobe/jsonschema2md/compare/v7.1.5...v7.1.6) ##### Bug Fixes - **deps:** update dependency [@​adobe/helix-log](https://github.com/adobe/helix-log) to v6.0.1 ([b54415a](https://github.com/adobe/jsonschema2md/commit/b54415a0ae4a66a8ec5da9d433403cf46b0cf351)) - **deps:** update external fixes ([f515169](https://github.com/adobe/jsonschema2md/commit/f5151691a394c139f07ecaf8ec465e71dba49631)) - **deps:** update external fixes ([e23d8f0](https://github.com/adobe/jsonschema2md/commit/e23d8f01666fedc12442fa2f9bab660c5aa58d8a)) - **deps:** update external major ([#​516](https://github.com/adobe/jsonschema2md/issues/516)) ([d7d72e6](https://github.com/adobe/jsonschema2md/commit/d7d72e61e2b65f0a790b8945d756082bf2fd3bcf)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on sunday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/PKUHPC/SCOW). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Hi all,
I encountered an issue when trying to generate documentation from a set of schemas that contain a circular reference.
I get the following exception...
The schema seems to be valid. I can avoid the issue by rewriting the schemas as...
It seems that the error surfaces only with relative references.
The text was updated successfully, but these errors were encountered: