@apigames/json-schema
Advanced tools
Comparing version 1.0.11 to 1.0.12
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const jsonschema_1 = require("jsonschema"); | ||
const json_1 = require("@apigames/json"); | ||
class JsonSchemaValidator { | ||
@@ -31,3 +32,3 @@ constructor() { | ||
this._validationErrors = undefined; | ||
if (!payloadDocument) { | ||
if (json_1.isUndefined(payloadDocument)) { | ||
this._validationErrors = [new jsonschema_1.ValidationError('The payload was empty.')]; | ||
@@ -34,0 +35,0 @@ return false; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"main": "lib/index.js", | ||
@@ -9,0 +9,0 @@ "types": "lib/index.d.ts", |
24085
356