Skip to content

Commit

Permalink
fix converting inherited types
Browse files Browse the repository at this point in the history
  • Loading branch information
nazieb committed Apr 13, 2017
1 parent ad1395e commit 2c453d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "optimusjs",
"version": "0.3.0",
"version": "0.3.1",
"description": "Transform API Blueprint into any other formats",
"main": "dist/index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function getDefinitions(dataStructures) {

for (let structure of dataStructures) {
structure = structure.content[0];
if (structure.element != "object") {
if (isPrimitiveType(structure.element)) {
continue;
}

Expand Down

0 comments on commit 2c453d5

Please sign in to comment.