quicktype-core 23.3.14 → 23.3.16
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/UnifyClasses.js
CHANGED
|
@@ -112,7 +112,7 @@ class UnifyUnionBuilder extends UnionBuilder_1.UnionBuilder {
|
|
|
112
112
|
.filter((o) => o.getAdditionalProperties() !== undefined)
|
|
113
113
|
.map((o) => (0, Support_1.defined)(o.getAdditionalProperties()).typeRef));
|
|
114
114
|
(0, collection_utils_1.setUnionInto)(propertyTypes, additionalPropertyTypes);
|
|
115
|
-
return this.typeBuilder.getMapType(typeAttributes, this._unifyTypes(Array.from(propertyTypes)));
|
|
115
|
+
return this.typeBuilder.getMapType(typeAttributes, this._unifyTypes(Array.from(propertyTypes)), forwardingRef);
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
118
118
|
const [properties, additionalProperties, lostTypeAttributes] = getCliqueProperties(objectTypes, this.typeBuilder, (types) => {
|
|
@@ -33,8 +33,8 @@ class PhpTargetLanguage extends TargetLanguage_1.TargetLanguage {
|
|
|
33
33
|
}
|
|
34
34
|
get stringTypeMapping() {
|
|
35
35
|
const mapping = new Map();
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
// "date" and "time" are not implemented in the renderer (it throws
|
|
37
|
+
// on them), so let them fall back to plain strings.
|
|
38
38
|
mapping.set("uuid", "uuid");
|
|
39
39
|
mapping.set("date-time", "date-time");
|
|
40
40
|
return mapping;
|