json-schema-strictly-typed
Advanced tools
Comparing version 0.0.8 to 0.0.9
# CHANGELOG | ||
## `v0.0.9` | ||
* Defines robust type checks for toplevel type. | ||
## `v0.0.8` | ||
@@ -4,0 +8,0 @@ |
@@ -498,5 +498,3 @@ "use strict"; | ||
exports.JSSTIntegerWithNumericExclusiveMinimumAndMaximumTopLevel_ = exports.JSSTIntegerWithNumericExclusiveMinimumAndMaximumTopLevel(exports.JSSTEmpty); | ||
exports.JSSTIntegerWithNumericExclusiveMaximumTopLevel = function (c) { return function (c) { | ||
return t.intersection([exports.JSSTIntegerWithNumericExclusiveMaximum, exports.JSSTTopLevel(c)]); | ||
}; }; | ||
exports.JSSTIntegerWithNumericExclusiveMaximumTopLevel = function (c) { return t.intersection([exports.JSSTIntegerWithNumericExclusiveMaximum, exports.JSSTTopLevel(c)]); }; | ||
exports.JSSTIntegerWithNumericExclusiveMaximumTopLevel_ = exports.JSSTIntegerWithNumericExclusiveMaximumTopLevel(exports.JSSTEmpty); | ||
@@ -576,3 +574,39 @@ exports.JSSTIntegerWithNumericExclusiveMaximumAndMinimumTopLevel = function (c) { | ||
exports.JSSTObjectTopLevel_ = exports.JSSTObjectTopLevel(exports.JSSTEmpty); | ||
exports.JSONSchemaObject = t.type({}); | ||
exports.JSONSchemaObject = function (c) { | ||
return t.recursion("JSONSchemaObject", function () { | ||
return t.union([ | ||
exports.JSSTEmptyTopLevel(c), | ||
exports.JSSTConstTopLevel(c), | ||
exports.JSSTReferenceTopLevel(c), | ||
exports.JSSTNullTopLevel(c), | ||
exports.JSSTBooleanTopLevel(c), | ||
exports.JSSTIntegerTopLevel(c), | ||
exports.JSSTSimpleIntegerTopLevel(c), | ||
exports.JSSTIntegerWithMinimumTopLevel(c), | ||
exports.JSSTIntegerWithMaximumTopLevel(c), | ||
exports.JSSTIntegerWithBoundsTopLevel(c), | ||
exports.JSSTIntegerWithNumericExclusiveMinimumTopLevel(c), | ||
exports.JSSTIntegerWithNumericExclusiveMinimumAndMaximumTopLevel(c), | ||
exports.JSSTIntegerWithNumericExclusiveMaximumTopLevel(c), | ||
exports.JSSTIntegerWithNumericExclusiveMaximumAndMinimumTopLevel(c), | ||
exports.JSSTIntegerWithNumericExclusiveBoundsTopLevel(c), | ||
exports.JSSTIntegerEnumTopLevel(c), | ||
exports.JSSTNumberTopLevel(c), | ||
exports.JSSTSimpleNumberTopLevel(c), | ||
exports.JSSTNumberEnumTopLevel(c), | ||
exports.JSSTAnyOfTopLevel(c), | ||
exports.JSSTAllOfTopLevel(c), | ||
exports.JSSTNotTopLevel(c), | ||
exports.JSSTOneOfTopLevel(c), | ||
exports.JSSTStringTopLevel(c), | ||
exports.JSSTSimpleStringTopLevel(c), | ||
exports.JSSTRegexTopLevel(c), | ||
exports.JSSTStringEnumTopLevel(c), | ||
exports.JSSTArrayTopLevel(c), | ||
exports.JSSTListTopLevel(c), | ||
exports.JSSTTupleTopLevel(c), | ||
exports.JSSTObjectTopLevel(c) | ||
]); | ||
}); | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "json-schema-strictly-typed", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
274468
3500