Skip to content

Commit de4ed96

Browse files
committed
Merge remote-tracking branch 'pascal/master'
2 parents b2c8e59 + 78d05fd commit de4ed96

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "OpenAPI",
3-
"version": "0.1.12",
4-
"versionDate": "2020-01-03",
3+
"version": "0.1.14",
4+
"versionDate": "2020-01-18",
55
"author": "hackolade",
66
"engines": {
77
"hackolade": "3.3.0",

properties_pane/container_level/containerLevelConfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ making sure that you maintain a proper JSON format.
147147
"propertyType": "details",
148148
"template": "textarea"
149149
},
150+
{
151+
"propertyName": "Activated",
152+
"propertyKeyword": "isActivated",
153+
"propertyType": "checkbox",
154+
"propertyTooltip": "Deactivated item will be commented out in the schema"
155+
},
150156
{
151157
"propertyName": "summary",
152158
"propertyKeyword": "summary",

properties_pane/entity_level/entityLevelConfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ making sure that you maintain a proper JSON format.
234234
"propertyType": "checkbox",
235235
"hidden": true
236236
},
237+
{
238+
"propertyName": "Activated",
239+
"propertyKeyword": "isActivated",
240+
"propertyType": "checkbox",
241+
"propertyTooltip": "Deactivated item will be commented out in the schema"
242+
},
237243
{
238244
"propertyName": "schema",
239245
"propertyKeyword": "pathItemSchema",

reverse_engineering/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const convertOpenAPISchemaToHackolade = (openAPISchema, fieldOrder) => {
7474
const components = openAPISchema.components;
7575
const definitions = dataHelper.getComponents(openAPISchema.components, fieldOrder);
7676
const callbacksComponent = components && components.callbacks;
77-
const modelContent = dataHelper.getModelContent(openAPISchema.paths, fieldOrder, callbacksComponent);
77+
const modelContent = dataHelper.getModelContent(openAPISchema.paths || {}, fieldOrder, callbacksComponent);
7878
return { modelData, modelContent, definitions };
7979
};
8080

0 commit comments

Comments
 (0)