Skip to content

Commit a2cb227

Browse files
pdesmaretslenchvolodymyrmtseluiko
authored
OpenAPI improvements (#2)
* fix name of definitions after fe * add nullable property * handle nullable in fe * add lodash helpers * convert null to string during re of json schema * enable ddl as definitions * enable re to definitions * fix definitions path in the reference inside schema components * RE: add handling schemas with components only * implement support of external definitions to OpenAPI schemas * Revert "implement support of external definitions to OpenAPI schemas" * RE: fix sortObject on null * Fix complex extensions handling * externalDefinitions: fix missing dependency * FE: fix schema properties in external definitions path * RE external definitions: fix definitions path resolving * RE: fix callbacks handling * fix externalDefinitions path resolving in components/schemas * fix definitions FE * Enable external definitions RE in config * Fix merge conflict * FE: fix target schema external definitions on items inside requestBody * RE: fix external definitions path resolving * merge * add isActivated PP flag * add commenting schema parts * add adapter for adding isActivated flag * remove commented schema lines if save to json file * add tooltips * rename options key * fix external definitions * fix setting activated flags for collections * fix regexp * Comments support * merge * RE: fix reverse of swaggerhub domain files * bump schema validation package version * Enhance request body snippet * PP: add select for media type name * update localization * add response codes tooltips * add api target feature flag * add apiTarget feature flag * update response codes names * update localization * bump min application version * filter empty media objects in FE * precreate media object for requests and responses * update localization Co-authored-by: Lench Volodymyr <[email protected]> Co-authored-by: Mikhail <[email protected]>
1 parent 78d05fd commit a2cb227

File tree

1,801 files changed

+17899
-113450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,801 files changed

+17899
-113450
lines changed

forward_engineering/helpers/componentsHelpers/parametersHelper.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,13 @@ function getContent(data) {
9595
}
9696

9797
return Object.keys(data.properties).reduce((acc, key) => {
98-
if (!get(data, `properties[${key}].properties`)) {
98+
const properties = get(data, `properties[${key}].properties`);
99+
if (!properties) {
99100
return;
100-
}
101+
}
102+
if (properties.schema && get(properties.schema, 'type') === 'object' && !get(properties.schema, 'properties')) {
103+
return;
104+
}
101105
acc[key] = mapMediaTypeObject(data.properties[key]);
102106
return acc;
103107
}, {});

forward_engineering/node_modules/.bin/z-schema

Lines changed: 0 additions & 1 deletion
This file was deleted.

forward_engineering/node_modules/.bin/z-schema

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

forward_engineering/node_modules/core-js/CHANGELOG.md

Lines changed: 0 additions & 699 deletions
This file was deleted.

forward_engineering/node_modules/core-js/Gruntfile.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

forward_engineering/node_modules/core-js/LICENSE

Lines changed: 0 additions & 19 deletions
This file was deleted.

forward_engineering/node_modules/core-js/README.md

Lines changed: 0 additions & 2307 deletions
This file was deleted.

forward_engineering/node_modules/core-js/bower.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

forward_engineering/node_modules/core-js/build/Gruntfile.ls

Lines changed: 0 additions & 86 deletions
This file was deleted.

forward_engineering/node_modules/core-js/build/build.ls

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)