io-ts-from-json-schema
Advanced tools
Comparing version 0.0.4 to 0.0.5-alpha1
@@ -406,3 +406,11 @@ #!/usr/bin/env node | ||
function fromRef(refString) { | ||
var ref = parseRef(refString); | ||
// eslint-disable-next-line | ||
var ref; | ||
try { | ||
// eslint-disable-next-line | ||
ref = parseRef(refString); | ||
} | ||
catch (_a) { | ||
return error('Failed to parse reference'); | ||
} | ||
if (ref.filePath === '') { | ||
@@ -409,0 +417,0 @@ return gen.customCombinator(ref.variableName, ref.variableName, [ref.variableName]); |
{ | ||
"name": "io-ts-from-json-schema", | ||
"version": "0.0.4", | ||
"version": "0.0.5-alpha1", | ||
"description": "Iotsfjs is a static code generation utility used for converting json schema files into static TypeScript types and io-ts runtime validators.", | ||
@@ -5,0 +5,0 @@ "main": "lib/cli.js", |
35761
856