quicktype-core 7.0.38 → 7.0.40

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.
@@ -31,6 +31,13 @@ export declare const cSharpOptions: {
31
31
  virtual: BooleanOption;
32
32
  typeForAny: EnumOption<CSharpTypeForAny>;
33
33
  useDecimal: EnumOption<boolean>;
34
+ features: EnumOption<{
35
+ namespaces: boolean;
36
+ helpers: boolean;
37
+ attributes: boolean;
38
+ }>;
39
+ baseclass: EnumOption<string | undefined>;
40
+ checkRequired: BooleanOption;
34
41
  };
35
42
  export declare class CSharpTargetLanguage extends TargetLanguage {
36
43
  constructor();
@@ -88,7 +95,6 @@ export declare const newtonsoftCSharpOptions: {
88
95
  virtual: BooleanOption;
89
96
  typeForAny: EnumOption<CSharpTypeForAny>;
90
97
  useDecimal: EnumOption<boolean>;
91
- } & {
92
98
  features: EnumOption<{
93
99
  namespaces: boolean;
94
100
  helpers: boolean;
@@ -145,7 +151,6 @@ export declare const systemTextJsonCSharpOptions: {
145
151
  virtual: BooleanOption;
146
152
  typeForAny: EnumOption<CSharpTypeForAny>;
147
153
  useDecimal: EnumOption<boolean>;
148
- } & {
149
154
  features: EnumOption<{
150
155
  namespaces: boolean;
151
156
  helpers: boolean;
@@ -105,7 +105,18 @@ exports.cSharpOptions = {
105
105
  useDecimal: new RendererOptions_1.EnumOption("number-type", "Type to use for numbers", [
106
106
  ["double", false],
107
107
  ["decimal", true]
108
- ], "double", "secondary")
108
+ ], "double", "secondary"),
109
+ features: new RendererOptions_1.EnumOption("features", "Output features", [
110
+ ["complete", { namespaces: true, helpers: true, attributes: true }],
111
+ ["attributes-only", { namespaces: true, helpers: false, attributes: true }],
112
+ ["just-types-and-namespace", { namespaces: true, helpers: false, attributes: false }],
113
+ ["just-types", { namespaces: true, helpers: false, attributes: false }]
114
+ ]),
115
+ baseclass: new RendererOptions_1.EnumOption("base-class", "Base class", [
116
+ ["EntityData", "EntityData"],
117
+ ["Object", undefined]
118
+ ], "Object", "secondary"),
119
+ checkRequired: new RendererOptions_1.BooleanOption("check-required", "Fail if required properties are missing", false)
109
120
  };
110
121
  class CSharpTargetLanguage extends TargetLanguage_1.TargetLanguage {
111
122
  constructor() {
@@ -120,7 +131,10 @@ class CSharpTargetLanguage extends TargetLanguage_1.TargetLanguage {
120
131
  exports.cSharpOptions.useList,
121
132
  exports.cSharpOptions.useDecimal,
122
133
  exports.cSharpOptions.typeForAny,
123
- exports.cSharpOptions.virtual
134
+ exports.cSharpOptions.virtual,
135
+ exports.cSharpOptions.features,
136
+ exports.cSharpOptions.baseclass,
137
+ exports.cSharpOptions.checkRequired,
124
138
  ];
125
139
  }
126
140
  get stringTypeMapping() {
@@ -478,19 +492,7 @@ class CSharpRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
478
492
  }
479
493
  }
480
494
  exports.CSharpRenderer = CSharpRenderer;
481
- exports.newtonsoftCSharpOptions = Object.assign({}, exports.cSharpOptions, {
482
- features: new RendererOptions_1.EnumOption("features", "Output features", [
483
- ["complete", { namespaces: true, helpers: true, attributes: true }],
484
- ["attributes-only", { namespaces: true, helpers: false, attributes: true }],
485
- ["just-types-and-namespace", { namespaces: true, helpers: false, attributes: false }],
486
- ["just-types", { namespaces: true, helpers: false, attributes: false }]
487
- ]),
488
- baseclass: new RendererOptions_1.EnumOption("base-class", "Base class", [
489
- ["EntityData", "EntityData"],
490
- ["Object", undefined]
491
- ], "Object", "secondary"),
492
- checkRequired: new RendererOptions_1.BooleanOption("check-required", "Fail if required properties are missing", false)
493
- });
495
+ exports.newtonsoftCSharpOptions = Object.assign({}, exports.cSharpOptions, {});
494
496
  class NewtonsoftCSharpRenderer extends CSharpRenderer {
495
497
  constructor(targetLanguage, renderContext, _options) {
496
498
  super(targetLanguage, renderContext, _options);
@@ -1087,19 +1089,7 @@ class NewtonsoftCSharpRenderer extends CSharpRenderer {
1087
1089
  }
1088
1090
  }
1089
1091
  exports.NewtonsoftCSharpRenderer = NewtonsoftCSharpRenderer;
1090
- exports.systemTextJsonCSharpOptions = Object.assign({}, exports.cSharpOptions, {
1091
- features: new RendererOptions_1.EnumOption("features", "Output features", [
1092
- ["complete", { namespaces: true, helpers: true, attributes: true }],
1093
- ["attributes-only", { namespaces: true, helpers: false, attributes: true }],
1094
- ["just-types-and-namespace", { namespaces: true, helpers: false, attributes: false }],
1095
- ["just-types", { namespaces: true, helpers: false, attributes: false }]
1096
- ]),
1097
- baseclass: new RendererOptions_1.EnumOption("base-class", "Base class", [
1098
- ["EntityData", "EntityData"],
1099
- ["Object", undefined]
1100
- ], "Object", "secondary"),
1101
- checkRequired: new RendererOptions_1.BooleanOption("check-required", "Fail if required properties are missing", false)
1102
- });
1092
+ exports.systemTextJsonCSharpOptions = Object.assign({}, exports.cSharpOptions, {});
1103
1093
  class SystemTextJsonCSharpRenderer extends CSharpRenderer {
1104
1094
  constructor(targetLanguage, renderContext, _options) {
1105
1095
  super(targetLanguage, renderContext, _options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "7.0.38",
3
+ "version": "7.0.40",
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": "25bfa6edddc1122028e9fefc17be745bf431222a"
48
+ "commit": "23789516cbcf5a2669d2cc3a9e658037a537262d"
49
49
  }
50
50
  }