@rebasepro/client-firebase 0.2.5 → 0.4.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/index.umd.js
CHANGED
|
@@ -596,7 +596,8 @@
|
|
|
596
596
|
if (normalizedProperty.enum) {
|
|
597
597
|
normalizedProperty.enum = normalizeEnumValuesToArray(normalizedProperty.enum, sortObjectFormat);
|
|
598
598
|
}
|
|
599
|
-
|
|
599
|
+
const propType = normalizedProperty.type ?? normalizedProperty.dataType;
|
|
600
|
+
if (propType === "array" && typeof normalizedProperty.of === "object" && normalizedProperty.of !== null) {
|
|
600
601
|
const ofProp = normalizedProperty.of;
|
|
601
602
|
if (ofProp.enum) {
|
|
602
603
|
normalizedProperty.of = {
|
|
@@ -605,7 +606,7 @@
|
|
|
605
606
|
};
|
|
606
607
|
}
|
|
607
608
|
}
|
|
608
|
-
if (
|
|
609
|
+
if (propType === "map" && normalizedProperty.properties) {
|
|
609
610
|
normalizedProperty.properties = normalizePropertiesEnumValues(normalizedProperty.properties, sortObjectFormat);
|
|
610
611
|
}
|
|
611
612
|
result[key] = normalizedProperty;
|