@adobe/jsonschema2md 8.1.1 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/schemaProxy.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [8.1.2](https://github.com/adobe/jsonschema2md/compare/v8.1.1...v8.1.2) (2026-12-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* preserve generated page slugs when resolving references again ([846c388](https://github.com/adobe/jsonschema2md/commit/846c388d4afc5e1d470c2dd81a28ed5370eac331)), closes [#680](https://github.com/adobe/jsonschema2md/issues/680)
|
|
7
|
+
|
|
1
8
|
## [8.1.1](https://github.com/adobe/jsonschema2md/compare/v8.1.0...v8.1.1) (2026-12-04)
|
|
2
9
|
|
|
3
10
|
|
package/lib/schemaProxy.js
CHANGED
|
@@ -152,10 +152,14 @@ const handler = ({
|
|
|
152
152
|
|
|
153
153
|
if (referenced !== null) {
|
|
154
154
|
// inject the referenced schema into the current schema
|
|
155
|
+
const slug = retval[myslug];
|
|
155
156
|
Object.assign(retval, referenced);
|
|
156
157
|
if (referenced && referenced[keyword`$id`]) {
|
|
157
158
|
// Traversal deduplicates schema IDs, so reuse the referenced page's slug.
|
|
158
159
|
retval[myslug] = referenced[symbols.slug];
|
|
160
|
+
} else if (slug !== undefined) {
|
|
161
|
+
// Earlier links may already use this page's slug; resolving again must not change it.
|
|
162
|
+
retval[myslug] = slug;
|
|
159
163
|
}
|
|
160
164
|
} else {
|
|
161
165
|
console.error('cannot resolve', basedoc);
|