Skip to content

Commit

Permalink
Merge branch 'master' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
RedocBot authored and travis@localhost committed Apr 28, 2016
2 parents 4353138 + 9cc251e commit 89619e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/components/JsonSchema/json-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ export default class JsonSchema extends BaseComponent {
}
return propertySchema;
});
if (this.skipReadOnly) {
props = props.filter(prop => !prop.readOnly);
}
// Move discriminator field to the end of properties list
if (discriminatorFieldIdx > -1) {
let discrProp = props.splice(discriminatorFieldIdx, 1);
props.push(discrProp[0]);
}
if (this.skipReadOnly) {
props = props.filter(prop => !prop.readOnly);
}
schema.properties = props;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "redoc",
"description": "Swagger-generated API Reference Documentation",
"version": "0.7.13",
"version": "0.7.14",
"repository": {
"type": "git",
"url": "git://github.com/Rebilly/ReDoc"
Expand Down

0 comments on commit 89619e1

Please sign in to comment.