Skip to content

Commit

Permalink
Patch Additional Properties Scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbox committed Apr 12, 2022
1 parent 401d2ab commit 27b7626
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/converters/openapi3_to_swagger2.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ Converter.prototype.convertSchema = function(def, operationDirection) {
}
}
}
if (def["additionalProperties"] !== undefined &&
typeof def.additionalProperties == "object") {
def["additionalProperties"] = true;
}
case 'array':
if (def.items) {
this.convertSchema(def.items, operationDirection);
Expand Down

0 comments on commit 27b7626

Please sign in to comment.