quicktype-core 20.0.9 → 20.0.11

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.
@@ -134,7 +134,7 @@ class CSharpTargetLanguage extends TargetLanguage_1.TargetLanguage {
134
134
  exports.cSharpOptions.virtual,
135
135
  exports.cSharpOptions.features,
136
136
  exports.cSharpOptions.baseclass,
137
- exports.cSharpOptions.checkRequired,
137
+ exports.cSharpOptions.checkRequired
138
138
  ];
139
139
  }
140
140
  get stringTypeMapping() {
@@ -260,16 +260,12 @@ class CSharpRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
260
260
  return (0, TypeUtils_1.matchType)(actualType, _anyType => (0, Source_1.maybeAnnotated)(withIssues, Annotation_1.anyTypeIssueAnnotation, this._csOptions.typeForAny), _nullType => (0, Source_1.maybeAnnotated)(withIssues, Annotation_1.nullTypeIssueAnnotation, this._csOptions.typeForAny), _boolType => "bool", _integerType => "long", _doubleType => this.doubleType, _stringType => "string", arrayType => {
261
261
  const itemsType = this.csType(arrayType.items, follow, withIssues);
262
262
  if (this._csOptions.useList) {
263
- return ["System.Collections.Generic.List<", itemsType, ">"];
263
+ return ["List<", itemsType, ">"];
264
264
  }
265
265
  else {
266
266
  return [itemsType, "[]"];
267
267
  }
268
- }, classType => this.nameForNamedType(classType), mapType => [
269
- "System.Collections.Generic.Dictionary<string, ",
270
- this.csType(mapType.values, follow, withIssues),
271
- ">"
272
- ], enumType => this.nameForNamedType(enumType), unionType => {
268
+ }, classType => this.nameForNamedType(classType), mapType => ["Dictionary<string, ", this.csType(mapType.values, follow, withIssues), ">"], enumType => this.nameForNamedType(enumType), unionType => {
273
269
  const nullable = (0, TypeUtils_1.nullableFromUnion)(unionType);
274
270
  if (nullable !== null)
275
271
  return this.nullableCSType(nullable, noFollow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "20.0.9",
3
+ "version": "20.0.11",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",