quicktype-core 23.0.15 → 23.0.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.
@@ -682,6 +682,14 @@ class CPlusPlusRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
682
682
  this.ensureBlankLine();
683
683
  this.emitLine("#pragma once");
684
684
  this.ensureBlankLine();
685
+ if (this.haveOptionalProperties) {
686
+ if (this._options.boost) {
687
+ this.emitInclude(true, "boost/optional.hpp");
688
+ }
689
+ else {
690
+ this.emitInclude(true, "optional");
691
+ }
692
+ }
685
693
  if (this.haveNamedUnions) {
686
694
  if (this._options.boost) {
687
695
  this.emitInclude(true, "boost/variant.hpp");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "23.0.15",
3
+ "version": "23.0.16",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",