jedison 1.12.3 → 1.13.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/dist/esm/jedison.js
CHANGED
|
@@ -2786,6 +2786,12 @@ class InstanceMultiple extends Instance {
|
|
|
2786
2786
|
"Null"
|
|
2787
2787
|
];
|
|
2788
2788
|
}
|
|
2789
|
+
const switcherTypeLabels = getSchemaXOption(this.schema, "switcherTypeLabels") ?? this.jedison.getOption("switcherTypeLabels");
|
|
2790
|
+
if (switcherTypeLabels && typeof switcherTypeLabels === "object") {
|
|
2791
|
+
this.switcherOptionsLabels = this.switcherOptionsLabels.map(
|
|
2792
|
+
(label) => hasOwn(switcherTypeLabels, label) ? switcherTypeLabels[label] : label
|
|
2793
|
+
);
|
|
2794
|
+
}
|
|
2789
2795
|
this.schemas.forEach((schema) => {
|
|
2790
2796
|
const instance = this.jedison.createInstance({
|
|
2791
2797
|
jedison: this.jedison,
|
|
@@ -6956,7 +6962,8 @@ class Jedison extends EventEmitter {
|
|
|
6956
6962
|
enforceEnum: true,
|
|
6957
6963
|
subErrors: false,
|
|
6958
6964
|
debug: false,
|
|
6959
|
-
audacity: true
|
|
6965
|
+
audacity: true,
|
|
6966
|
+
switcherTypeLabels: {}
|
|
6960
6967
|
}, options);
|
|
6961
6968
|
this.rootName = "#";
|
|
6962
6969
|
this.pathSeparator = "/";
|