apiaryio / fury-adapter-swagger

Swagger 2.0 parser adapter for Fury.js
MIT License
11 stars 12 forks source link

Disallow source document to be object #159

Open kylef opened 6 years ago

kylef commented 6 years ago

Currently the parser allows you to feed in JavaScript objects instead of a JSON or YAML document. I feel like allowing the source document to be a JavaScript object was a developer convince, but it is an anti-pattern as there will be no source maps for these types of source documents.

This will prevent any accidental parsing of an object to the parser causing missing source maps.

BREAKING CHANGE