Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
Update: Added check for the right JSON data passed to the element. If…
Browse files Browse the repository at this point in the history
… the passed data is direct output from the parser it will take the the json.specification property which contains the spec JSON data
  • Loading branch information
jarrodek committed Mar 30, 2017
1 parent 344af3c commit 2977a02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions raml-json-enhance.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
if (!json) {
return this._setResult(undefined);
}
if (json.specification) {
json = json.specification;
}
this._normalizeRamlJson(json);
},

Expand Down

0 comments on commit 2977a02

Please sign in to comment.