quicktype-core 6.0.68 → 6.0.69

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.
@@ -1117,7 +1117,7 @@ class CPlusPlusRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
1117
1117
  this.emitLine("{", this._stringType.wrapEncodingChange([ourQualifier], this._stringType.getType(), this.NarrowString.getType(), [this._stringType.createStringLiteral([Strings_1.stringEscape(jsonName)])]), ", ", ourQualifier, enumName, "::", name, "},");
1118
1118
  });
1119
1119
  });
1120
- this.emitLine("auto iter = enumValues.find(j);");
1120
+ this.emitLine(`auto iter = enumValues.find(j.get<${this._stringType.getType()}>());`);
1121
1121
  this.emitBlock("if (iter != enumValues.end())", false, () => {
1122
1122
  this.emitLine("x = iter->second;");
1123
1123
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "6.0.68",
3
+ "version": "6.0.69",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -45,6 +45,6 @@
45
45
  "fs": false
46
46
  },
47
47
  "config": {
48
- "commit": "1befda4fab18ba9461771978d822589f9938b99f"
48
+ "commit": "e6cc44fdfcb75c3f3ed3e12f69f15a0c863a1a05"
49
49
  }
50
50
  }