quicktype 18.0.2 → 18.0.3

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() {
@@ -479,19 +493,7 @@ class CSharpRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
479
493
  }
480
494
  }
481
495
  exports.CSharpRenderer = CSharpRenderer;
482
- exports.newtonsoftCSharpOptions = Object.assign({}, exports.cSharpOptions, {
483
- features: new RendererOptions_1.EnumOption("features", "Output features", [
484
- ["complete", { namespaces: true, helpers: true, attributes: true }],
485
- ["attributes-only", { namespaces: true, helpers: false, attributes: true }],
486
- ["just-types-and-namespace", { namespaces: true, helpers: false, attributes: false }],
487
- ["just-types", { namespaces: true, helpers: false, attributes: false }]
488
- ]),
489
- baseclass: new RendererOptions_1.EnumOption("base-class", "Base class", [
490
- ["EntityData", "EntityData"],
491
- ["Object", undefined]
492
- ], "Object", "secondary"),
493
- checkRequired: new RendererOptions_1.BooleanOption("check-required", "Fail if required properties are missing", false)
494
- });
496
+ exports.newtonsoftCSharpOptions = Object.assign({}, exports.cSharpOptions, {});
495
497
  class NewtonsoftCSharpRenderer extends CSharpRenderer {
496
498
  _options;
497
499
  _enumExtensionsNames = new Map();
@@ -1092,19 +1094,7 @@ class NewtonsoftCSharpRenderer extends CSharpRenderer {
1092
1094
  }
1093
1095
  }
1094
1096
  exports.NewtonsoftCSharpRenderer = NewtonsoftCSharpRenderer;
1095
- exports.systemTextJsonCSharpOptions = Object.assign({}, exports.cSharpOptions, {
1096
- features: new RendererOptions_1.EnumOption("features", "Output features", [
1097
- ["complete", { namespaces: true, helpers: true, attributes: true }],
1098
- ["attributes-only", { namespaces: true, helpers: false, attributes: true }],
1099
- ["just-types-and-namespace", { namespaces: true, helpers: false, attributes: false }],
1100
- ["just-types", { namespaces: true, helpers: false, attributes: false }]
1101
- ]),
1102
- baseclass: new RendererOptions_1.EnumOption("base-class", "Base class", [
1103
- ["EntityData", "EntityData"],
1104
- ["Object", undefined]
1105
- ], "Object", "secondary"),
1106
- checkRequired: new RendererOptions_1.BooleanOption("check-required", "Fail if required properties are missing", false)
1107
- });
1097
+ exports.systemTextJsonCSharpOptions = Object.assign({}, exports.cSharpOptions, {});
1108
1098
  class SystemTextJsonCSharpRenderer extends CSharpRenderer {
1109
1099
  _options;
1110
1100
  _enumExtensionsNames = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype",
3
- "version": "18.0.2",
3
+ "version": "18.0.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cli/index.js",
6
6
  "types": "dist/cli/index.d.ts",