Skip to content

Commit

Permalink
Merge pull request #377 from iljapostnovs/development
Browse files Browse the repository at this point in the history
fix metadata parser
  • Loading branch information
iljapostnovs authored Oct 17, 2023
2 parents 93995fc + 05efcfd commit 533953b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.16.1 (17-10-2023)

- Bugfix for OData parser

## 1.16.0 (16-10-2023)

- Commands which worked with V2 OData model only now works with V4 as well
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ui5plugin",
"displayName": "SAPUI5 Extension",
"description": "Extension for working with UI5 projects",
"version": "1.16.0",
"version": "1.16.1",
"publisher": "iljapostnovs",
"license": "Apache-2.0",
"author": "Ilja Postnovs <ilja.postnovs@gmail.com>",
Expand Down
5 changes: 2 additions & 3 deletions src/classes/utils/xmlmetadata/XMLMetadataParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ export class XMLMetadataParser extends AXMLMetadataParser {
const entityTypes = this._getArray(schema.EntityType);
const complexTypes = this._getArray(schema.ComplexType);
const associations = this._getArray(schema.Association);
const functionImports =
schema.EntityContainer?.FunctionImport && this._getArray(schema.EntityContainer.FunctionImport);
const entitySets = schema.EntityContainer?.EntitySet && this._getArray(schema.EntityContainer.EntitySet);
const functionImports = this._getArray(schema.EntityContainer?.FunctionImport);
const entitySets = this._getArray(schema.EntityContainer?.EntitySet);

parsedAssociations.push(...this._parseAssociations(associations));
parsedEntityTypes.push(...this._parseEntityTypes(entityTypes, entitySets, parsedAssociations));
Expand Down

0 comments on commit 533953b

Please sign in to comment.