ts-json-schema-generator
Advanced tools
Comparing version 0.37.0 to 0.37.1
@@ -6,2 +6,3 @@ "use strict"; | ||
const NodeParser_1 = require("../NodeParser"); | ||
const LiteralType_1 = require("../Type/LiteralType"); | ||
const ObjectType_1 = require("../Type/ObjectType"); | ||
@@ -25,2 +26,5 @@ const StringType_1 = require("../Type/StringType"); | ||
} | ||
else if (keyListType instanceof LiteralType_1.LiteralType) { | ||
return new ObjectType_1.ObjectType(id, [], this.getProperties(node, new UnionType_1.UnionType([keyListType]), context), false); | ||
} | ||
else if (keyListType instanceof StringType_1.StringType) { | ||
@@ -27,0 +31,0 @@ return new ObjectType_1.ObjectType(id, [], [], this.childNodeParser.createType(node.type, context)); |
@@ -93,2 +93,3 @@ "use strict"; | ||
assertSchema("type-mapped-native", "MyObject"); | ||
assertSchema("type-mapped-native-single-literal", "MyObject"); | ||
assertSchema("type-mapped-widened", "MyObject"); | ||
@@ -95,0 +96,0 @@ assertSchema("generic-simple", "MyObject"); |
{ | ||
"name": "ts-json-schema-generator", | ||
"version": "0.37.0", | ||
"version": "0.37.1", | ||
"description": "Generate JSON schema from your Typescript sources", | ||
@@ -44,3 +44,3 @@ "main": "dist/index.js", | ||
"json-stable-stringify": "^1.0.1", | ||
"typescript": "^3.2.1" | ||
"typescript": "^3.2.2" | ||
}, | ||
@@ -47,0 +47,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
433341
4029
Updatedtypescript@^3.2.2