io-ts-from-json-schema
Advanced tools
Comparing version 0.0.20-alpha3 to 0.0.20-alpha4
@@ -902,3 +902,3 @@ #!/usr/bin/env node | ||
} | ||
var imports, genNeverType, genIntersectionCombinator, genUnionCombinator, definedHelper, Defined, nullHelper, Null, supportedEverywhere, supportedAtRoot, supportedOutsideRoot, documentBase, defaultExport, imps, helpers, exps, ErrorCode, OK, returnCode, inputs, defs, defs_1, defs_1_1, def, typeName, title, description, examples, invalid, defaultValue, minimumValue, maximumValue, staticType, runtimeType, examplesName, _a, _b, _c, base64, description_1, e_1_1, defaultName, minimumName, maximumName, e_2_1; | ||
var imports, genNeverType, genIntersectionCombinator, genUnionCombinator, definedHelper, Defined, nullHelper, Null, supportedEverywhere, supportedAtRoot, supportedOutsideRoot, documentBase, defaultExport, imps, helpers, exps, ErrorCode, OK, returnCode, inputs, defs, defs_1, defs_1_1, def, typeName, title, description, examples, invalid, defaultValue, minimumValue, maximumValue, staticType, runtimeType, examplesName, _a, _b, _c, b64, description_1, str, parsed, e_1_1, defaultName, minimumName, maximumName, e_2_1; | ||
var e_2, _d, e_1, _e; | ||
@@ -1087,7 +1087,9 @@ return __generator(this, function (_f) { | ||
if (!!_b.done) return [3 /*break*/, 30]; | ||
_c = __read(_b.value, 2), base64 = _c[0], description_1 = _c[1]; | ||
return [4 /*yield*/, "// Negative Test Case: " + description_1]; | ||
_c = __read(_b.value, 2), b64 = _c[0], description_1 = _c[1]; | ||
return [4 /*yield*/, "// NEGATIVE Test Case: " + description_1]; | ||
case 27: | ||
_f.sent(); | ||
return [4 /*yield*/, "/** require('io-ts-validator').validator(" + typeName + ").decodeEither(Buffer.from('" + base64 + "', 'base64').toString('ascii'))._tag // => 'Left' */"]; | ||
str = Buffer.from(b64, 'base64').toString('ascii'); | ||
parsed = JSON.parse(str); | ||
return [4 /*yield*/, "/** require('io-ts-validator').validator(" + typeName + ").decodeEither(" + parsed + ")._tag // => 'Left' */"]; | ||
case 28: | ||
@@ -1094,0 +1096,0 @@ _f.sent(); |
{ | ||
"name": "io-ts-from-json-schema", | ||
"version": "0.0.20-alpha3", | ||
"version": "0.0.20-alpha4", | ||
"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 @@ "license": "MIT", |
82376
1839