carlansley / swagger2

Loading, parsing and validating requests to HTTP services based on Swagger v2.0 documents
MIT License
25 stars 17 forks source link

Remove FS.read requirement for schema.json to resolve issues with bundling tools #21

Closed adcreare closed 6 years ago

adcreare commented 6 years ago

Resolves issue when using this module with webpack or other minification tool. The use of fs.read to import schema.json prevents webpack being able to resolve the dependency at bundle time.

Following changes made:

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 1393f3c1822ba9babe0ff63364968dcd20b9fafc on adcreare:master into f58bf7ec3829a3f756ba910e6e13b743bb5efcca on carlansley:master.