diff --git a/spec/core/issues/allOf.json b/spec/core/issues/allOf.json index 0281a3913e9a8d8a2aac5d89747d86a20d83af17..1d01ad7f55456cb06c5b3c76d08ed16807424f2d 100644 --- a/spec/core/issues/allOf.json +++ b/spec/core/issues/allOf.json @@ -3,7 +3,6 @@ "description": "sub-schema mixins", "schemas": [ { - "id": "#", "type": "object", "definitions": { "inner": { diff --git a/spec/core/references.json b/spec/core/references.json index fe66e83c12b4ffa04a70d475dd891ddb61a21952..f9f9879108fcd2b0de96ae9b53af7af10c966e5e 100644 --- a/spec/core/references.json +++ b/spec/core/references.json @@ -5,7 +5,6 @@ { "description": "should handle internal $refs", "schema": { - "id": "#", "definitions": { "integer": { "type": "integer" diff --git a/spec/main-spec.coffee b/spec/main-spec.coffee index 7ee94e442f5d9c647dd950d9f890e87817ab8e5b..19052ee9aa5d4fad62f389cce60d8e4214fe12f8 100644 --- a/spec/main-spec.coffee +++ b/spec/main-spec.coffee @@ -1,6 +1,5 @@ fs = require('fs') glob = require('glob') -deref = require('deref') jsfaker = require('../lib') require('./formats').register(jsfaker) @@ -54,10 +53,7 @@ glob.sync("#{__dirname}/**/*.json").forEach (file) -> expect(error).toMatch new RegExp('^' + test.throws + '$', 'i') if test.valid - schema = deref.util.normalizeSchema(schema) - try - refs = [schema] if schema.id expect(sample).toHaveSchema schema, refs catch e console.log JSON.stringify(schema, null, 2)