@sap/cds-compiler
Advanced tools
Comparing version 4.9.6 to 4.9.8
@@ -1206,3 +1206,5 @@ // Compiler phase 1 = "define": transform dictionary of AST-like XSNs into XSN | ||
if (path?.length === 1 && path[0]?.id === '$self') { // TODO: no where: ? | ||
const { $self } = main.$tableAliases; | ||
const $self = main.$tableAliases?.$self || | ||
main.kind === 'extend' && { name: { id: '$self' } }; | ||
// remark: an extend has no "table alias" `$self` (relevant for parse-cdl) | ||
setLink( type, '_artifact', $self ); | ||
@@ -1209,0 +1211,0 @@ setLink( path[0], '_artifact', $self ); |
@@ -885,2 +885,6 @@ 'use strict'; | ||
super(version, {}, csn); | ||
// CSDL 12.8: If the return type is a collection of entity types, | ||
// the Nullable attribute has no meaning and MUST NOT be specified. | ||
if (csn.$NoNullableProperty) | ||
delete this._edmAttributes.Nullable; | ||
} | ||
@@ -892,2 +896,6 @@ | ||
this.toJSONattributes(json); | ||
// CSDL 12.8: If the return type is a collection of entity types, | ||
// the Nullable attribute has no meaning and MUST NOT be specified. | ||
if (this._csn.$NoNullableProperty) | ||
delete json.$Nullable; | ||
return json; | ||
@@ -894,0 +902,0 @@ } |
{ | ||
"name": "@sap/cds-compiler", | ||
"version": "4.9.6", | ||
"version": "4.9.8", | ||
"description": "CDS (Core Data Services) compiler and backends", | ||
@@ -31,3 +31,3 @@ "homepage": "https://cap.cloud.sap/", | ||
"coverage:piper": "cross-env nyc mocha --reporter test/TestMochaReporter.js --reporter-options mochaFile=./coverage/TEST-results.xml --reporter-option maxDiffSize=0 --timeout 10000 test/ test3/ && nyc report --reporter=cobertura && nyc report --reporter=lcov", | ||
"lint": "eslint bin/ benchmark/ lib/ test/ test3/ scripts/ types/ && node scripts/linter/lintGrammar.js && node scripts/linter/lintTests.js test3/ && node scripts/linter/lintMessages.js && node scripts/linter/lintMessageIdCoverage.js lib/ && markdownlint README.md CHANGELOG.md doc/ internalDoc/ && cd share/messages && markdownlint . && cd ../../ && node scripts/check-changelog.js", | ||
"lint": "eslint bin/ benchmark/ lib/ test/ test3/ scripts/ && node scripts/linter/lintGrammar.js && node scripts/linter/lintTests.js test3/ && node scripts/linter/lintMessages.js && node scripts/linter/lintMessageIdCoverage.js lib/ && markdownlint README.md CHANGELOG.md doc/ internalDoc/ && cd share/messages && markdownlint . && cd ../../ && node scripts/check-changelog.js", | ||
"tslint": "tsc --pretty -p .", | ||
@@ -34,0 +34,0 @@ "updateVocs": "node scripts/odataAnnotations/generateDictMain.js && npm run generateAllRefs", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
4929512
101167