diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-06 14:27:20 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-06 15:27:53 -0400 |
| commit | f651f596ccdac372714caef7d6a26d0d14f5306c (patch) | |
| tree | cb2a3bd08306303b43f706b22a4ed01d70e0c621 /app/node_modules/okschema | |
| parent | f7bb4fc5ad662d9becd60c11f48998dba9339433 (diff) | |
Expose resource raw schema
Diffstat (limited to 'app/node_modules/okschema')
| -rw-r--r-- | app/node_modules/okschema/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/node_modules/okschema/index.js b/app/node_modules/okschema/index.js index c601a07..1ffe2d6 100644 --- a/app/node_modules/okschema/index.js +++ b/app/node_modules/okschema/index.js @@ -9,7 +9,10 @@ function OKSchema(spec) { if (!(this instanceof OKSchema)) return new OKSchema(spec); if (!spec) throw new Error('No spec provided to OKSchema'); - this._spec = spec; + Object.defineProperty(this, 'spec', { + value: spec, + writable: false + }); } OKSchema.prototype.assertValid = function(data) { |
