@peculiar/json-schema
Advanced tools
Comparing version 1.0.2 to 1.0.5
@@ -45,3 +45,3 @@ 'use strict'; | ||
get(target) { | ||
const schema = this.items.get(target); | ||
const schema = this.items.get(target) || this.findParentSchema(target); | ||
if (!schema) { | ||
@@ -48,0 +48,0 @@ throw new Error("Cannot get schema for current target"); |
{ | ||
"name": "@peculiar/json-schema", | ||
"version": "1.0.2", | ||
"version": "1.0.5", | ||
"description": "This package uses ES2015 decorators to simplify JSON schema creation and use", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
15728