bravado-core
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -18,9 +18,5 @@ var jsonRefs = require('json-refs'); | ||
function ApiDefinition (obj, file) { | ||
function ApiDefinition (obj) { | ||
var schema = schemas[obj.bravado] || schemas['1.0']; | ||
// var filter = validator.filter(schema) | ||
Object.defineProperty(this, '_source', { | ||
enumerable: false, | ||
value: file | ||
}); | ||
// Object.defineProperty(this, '_validate', { | ||
@@ -99,2 +95,3 @@ // enumerable: false, | ||
var api = results.resolved; | ||
api['x-bravado-sourceFile'] = source; | ||
for (var r in api.resources) { | ||
@@ -108,3 +105,3 @@ var resource = api.resources[r]; | ||
} | ||
var def = new ApiDefinition(api, source); | ||
var def = new ApiDefinition(api); | ||
return def; | ||
@@ -111,0 +108,0 @@ }); |
{ | ||
"name": "bravado-core", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "REST (Level 3/HATEOAS) API Framework", | ||
@@ -5,0 +5,0 @@ "directories": { |
47739
1583