From 95d257d4041f0be1e41ef150d418324904e2f7b6 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 28 Apr 2016 10:19:39 +0300 Subject: [PATCH 1/2] Fix discriminator ui issue --- lib/components/JsonSchema/json-schema.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/JsonSchema/json-schema.js b/lib/components/JsonSchema/json-schema.js index 6e5687df..d40a34f9 100644 --- a/lib/components/JsonSchema/json-schema.js +++ b/lib/components/JsonSchema/json-schema.js @@ -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; } From 9cc251e4a7db300bfcab420f0fcb8759aa9aa0c2 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 28 Apr 2016 10:20:21 +0300 Subject: [PATCH 2/2] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 91fade42..c891e863 100644 --- a/package.json +++ b/package.json @@ -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"