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.
@@ -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
- mapping.set("date", "date"); // TODO is not implemented yet
37
- mapping.set("time", "time"); // TODO is not implemented yet
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "23.3.14",
3
+ "version": "23.3.16",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",