quicktype-core 23.3.15 → 23.3.17

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) => {
@@ -323,7 +323,8 @@ class DartRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
323
323
  !this._options.requiredProperties &&
324
324
  (transformedStringType.isNullable || isNullable)) {
325
325
  return [
326
- '"${',
326
+ dynamic,
327
+ ' == null ? null : "${',
327
328
  dynamic,
328
329
  "!.year.toString().padLeft(4, '0')",
329
330
  "}-${",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "23.3.15",
3
+ "version": "23.3.17",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",