@sap-ux/edmx-parser
Advanced tools
Comparing version 0.7.0 to 0.7.1
# @sap-ux/edmx-parser | ||
## 0.7.1 | ||
### Patch Changes | ||
- 1b25c13: Introduce a new property `forceNullableValuesToNull` | ||
## 0.7.0 | ||
@@ -4,0 +10,0 @@ |
@@ -55,5 +55,3 @@ "use strict"; | ||
} | ||
if (entityProperty._attributes.Nullable) { | ||
edmProperty.nullable = entityProperty._attributes.Nullable !== 'false'; | ||
} | ||
edmProperty.nullable = entityProperty._attributes.Nullable !== 'false'; | ||
if (entityProperty._attributes.DefaultValue) { | ||
@@ -363,5 +361,3 @@ switch (edmProperty.type) { | ||
} | ||
if (param._attributes.Nullable) { | ||
edmActionParameter.nullable = param._attributes.Nullable !== 'false'; | ||
} | ||
edmActionParameter.nullable = param._attributes.Nullable !== 'false'; | ||
return edmActionParameter; | ||
@@ -368,0 +364,0 @@ }), |
{ | ||
"name": "@sap-ux/edmx-parser", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "SAP Fiori OData - EDMX File parser", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"devDependencies": { | ||
"@sap-ux/vocabularies-types": "0.10.0" | ||
"@sap-ux/vocabularies-types": "0.10.6" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
@@ -37,2 +37,3 @@ // eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
} from '@sap-ux/vocabularies-types'; | ||
import type { StringExpression } from '@sap-ux/vocabularies-types/src'; | ||
import { xml2js } from 'xml-js'; | ||
@@ -110,5 +111,3 @@ import { ensureArray, RawMetadataInstance } from './utils'; | ||
} | ||
if (entityProperty._attributes.Nullable) { | ||
edmProperty.nullable = entityProperty._attributes.Nullable !== 'false'; | ||
} | ||
edmProperty.nullable = entityProperty._attributes.Nullable !== 'false'; | ||
if (entityProperty._attributes.DefaultValue) { | ||
@@ -535,5 +534,3 @@ switch (edmProperty.type) { | ||
} | ||
if (param._attributes.Nullable) { | ||
edmActionParameter.nullable = param._attributes.Nullable !== 'false'; | ||
} | ||
edmActionParameter.nullable = param._attributes.Nullable !== 'false'; | ||
return edmActionParameter; | ||
@@ -682,3 +679,3 @@ }), | ||
| AnnotationRecord[] | ||
| string[] | ||
| StringExpression[] | ||
| PropertyPathExpression[] | ||
@@ -710,3 +707,3 @@ | PathExpression[] | ||
(stringArray as any).type = 'String'; | ||
return stringArray; | ||
return stringArray as unknown as StringExpression[]; | ||
} else if (isExpressionOfType<EDMX.AnnotationPathCollectionWrapper>(collection, 'AnnotationPath')) { | ||
@@ -713,0 +710,0 @@ const annotationPathArray = ensureArray(collection.AnnotationPath).map( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245354
4469