@speclynx/apidom-parser-adapter-openapi-json-3-1 2.10.2 → 2.11.0
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
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.11.0](https://github.com/speclynx/apidom/compare/v2.10.3...v2.11.0) (2026-02-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-json-3-1
|
|
9
|
+
|
|
10
|
+
## [2.10.3](https://github.com/speclynx/apidom/compare/v2.10.2...v2.10.3) (2026-02-10)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-json-3-1
|
|
13
|
+
|
|
6
14
|
## [2.10.2](https://github.com/speclynx/apidom/compare/v2.10.1...v2.10.2) (2026-02-08)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-json-3-1
|
|
@@ -22502,7 +22502,13 @@ class Element {
|
|
|
22502
22502
|
|
|
22503
22503
|
/** Unique identifier for this element. */
|
|
22504
22504
|
get id() {
|
|
22505
|
-
|
|
22505
|
+
if (this.isFrozen) {
|
|
22506
|
+
return this.getMetaProperty('id', '');
|
|
22507
|
+
}
|
|
22508
|
+
if (!this.hasMetaProperty('id')) {
|
|
22509
|
+
this.setMetaProperty('id', '');
|
|
22510
|
+
}
|
|
22511
|
+
return this.meta.get('id');
|
|
22506
22512
|
}
|
|
22507
22513
|
set id(value) {
|
|
22508
22514
|
this.setMetaProperty('id', value);
|
|
@@ -22510,7 +22516,13 @@ class Element {
|
|
|
22510
22516
|
|
|
22511
22517
|
/** CSS-like class names. */
|
|
22512
22518
|
get classes() {
|
|
22513
|
-
|
|
22519
|
+
if (this.isFrozen) {
|
|
22520
|
+
return this.getMetaProperty('classes', []);
|
|
22521
|
+
}
|
|
22522
|
+
if (!this.hasMetaProperty('classes')) {
|
|
22523
|
+
this.setMetaProperty('classes', []);
|
|
22524
|
+
}
|
|
22525
|
+
return this.meta.get('classes');
|
|
22514
22526
|
}
|
|
22515
22527
|
set classes(value) {
|
|
22516
22528
|
this.setMetaProperty('classes', value);
|
|
@@ -22518,7 +22530,13 @@ class Element {
|
|
|
22518
22530
|
|
|
22519
22531
|
/** Hyperlinks associated with this element. */
|
|
22520
22532
|
get links() {
|
|
22521
|
-
|
|
22533
|
+
if (this.isFrozen) {
|
|
22534
|
+
return this.getMetaProperty('links', []);
|
|
22535
|
+
}
|
|
22536
|
+
if (!this.hasMetaProperty('links')) {
|
|
22537
|
+
this.setMetaProperty('links', []);
|
|
22538
|
+
}
|
|
22539
|
+
return this.meta.get('links');
|
|
22522
22540
|
}
|
|
22523
22541
|
set links(value) {
|
|
22524
22542
|
this.setMetaProperty('links', value);
|
|
@@ -22669,16 +22687,26 @@ class Element {
|
|
|
22669
22687
|
}
|
|
22670
22688
|
|
|
22671
22689
|
/**
|
|
22672
|
-
* Gets a meta property
|
|
22690
|
+
* Gets a meta property.
|
|
22691
|
+
*
|
|
22692
|
+
* When the property doesn't exist:
|
|
22693
|
+
* - With defaultValue: returns a new refracted element instance (not cached)
|
|
22694
|
+
* - Without defaultValue: returns undefined
|
|
22695
|
+
*
|
|
22696
|
+
* Note: Each call with a default creates a new instance. Use setMetaProperty
|
|
22697
|
+
* first if you need reference equality across multiple accesses.
|
|
22673
22698
|
*/
|
|
22699
|
+
|
|
22674
22700
|
getMetaProperty(name, defaultValue) {
|
|
22675
|
-
if (!this.
|
|
22676
|
-
if (
|
|
22677
|
-
|
|
22701
|
+
if (!this.hasMetaProperty(name)) {
|
|
22702
|
+
if (defaultValue === undefined) {
|
|
22703
|
+
return undefined;
|
|
22704
|
+
}
|
|
22705
|
+
const element = this.refract(defaultValue);
|
|
22706
|
+
if (element && this.isFrozen) {
|
|
22678
22707
|
element.freeze();
|
|
22679
|
-
return element;
|
|
22680
22708
|
}
|
|
22681
|
-
|
|
22709
|
+
return element;
|
|
22682
22710
|
}
|
|
22683
22711
|
return this.meta.get(name);
|
|
22684
22712
|
}
|