io-ts-from-json-schema
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -78,2 +78,3 @@ #!/usr/bin/env node | ||
var printc_1 = require("./codegen/printc"); | ||
var hyper_1 = require("./vocab/hyper"); | ||
/* eslint-disable @typescript-eslint/no-use-before-define */ | ||
@@ -270,3 +271,3 @@ function iotsfjs(inputSchema, args, stderr) { | ||
} | ||
return withoutSuffix; | ||
return './'.concat(withoutSuffix); | ||
} | ||
@@ -722,3 +723,12 @@ function importBaseName(filePath) { | ||
var rootDef = fromRoot(schema); | ||
return namedDefs.concat(rootDef); | ||
var hyperDef = hyper_1.fromHyper({ | ||
defaultExport: defaultExport, | ||
extractExamples: extractExamples, | ||
extractDefaultValue: extractDefaultValue, | ||
imps: imps, | ||
exps: exps, | ||
fromSchema: fromSchema, | ||
generateChecks: generateChecks, | ||
})(schema); | ||
return namedDefs.concat(rootDef).concat(hyperDef); | ||
} | ||
@@ -839,2 +849,3 @@ function constructDefs(defInputs) { | ||
'examples', | ||
'links', | ||
]; | ||
@@ -841,0 +852,0 @@ supportedOutsideRoot = ['$ref']; |
{ | ||
"name": "io-ts-from-json-schema", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "Iotsfjs is a static code generation utility used for converting json schema files into static TypeScript types and io-ts runtime validators.", | ||
@@ -26,2 +26,3 @@ "main": "lib/cli.js", | ||
"io-ts-codegen": "^0.4.5", | ||
"uri-template": "^1.0.1", | ||
"yargs": "^15.3.1" | ||
@@ -31,2 +32,3 @@ }, | ||
"@types/glob": "^7.1.3", | ||
"@types/json-schema": "^7.0.7", | ||
"@types/node": "^14.0.1", | ||
@@ -33,0 +35,0 @@ "@types/yargs": "^15.0.5", |
74184
15
1664
4
22
+ Addeduri-template@^1.0.1
+ Addedpct-encode@1.0.3(transitive)
+ Addeduri-template@1.0.3(transitive)