Skip to content

Commit

Permalink
Merge branch 'main' into Common.SecondaryKey
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Sep 25, 2024
2 parents 559f49f + ced0a6b commit 83e3099
Show file tree
Hide file tree
Showing 5 changed files with 372 additions and 262 deletions.
128 changes: 85 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"eslint": "^8.56.0",
"express": "^4.19.2",
"express": "^4.20.0",
"prettier": "^3.2.5"
},
"scripts": {
Expand Down
32 changes: 28 additions & 4 deletions vocabularies/Common.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
"@Core.Description": "A short, human-readable text suitable for tool tips in UIs",
"@Core.IsLanguageDependent": true
},
"DocumentationRef": {
"$Kind": "Term",
"@Common.Experimental": true,
"@Core.Description": "A URI referencing language-dependent documentation for the annotated model element",
"@Core.Example": {
"@odata.type": "https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml#Core.PrimitiveExampleValue",
"Description": "URN scheme to look up the documentation for an object with given type and id in a given system.\n This example looks up the documentation for data element /iwbep/account in system G1Y_000.",
"Value": "urn:sap-com:documentation:key?=type=DTEL&id=%2fiwbep%2faccount&origin=G1Y_000"
}
},
"Text": {
"$Kind": "Term",
"$Nullable": true,
Expand Down Expand Up @@ -236,20 +246,34 @@
"SemanticObjectMapping": {
"$Kind": "Term",
"$Collection": true,
"$Type": "Common.SemanticObjectMappingType",
"$Type": "Common.SemanticObjectMappingAbstract",
"$AppliesTo": ["EntitySet", "EntityType", "Property"],
"$BaseTerm": "Common.SemanticObject",
"@Core.Description": "Maps properties of the annotated entity type or sibling properties of the annotated property to properties of the Semantic Object",
"@Core.LongDescription": "This allows \"renaming\" of properties in the current context to match property names of the Semantic Object, e.g. `SenderPartyID` to `PartyID`. Only properties explicitly listed in the mapping are renamed, all other properties are available for intent-based navigation with their \"local\" name."
},
"SemanticObjectMappingAbstract": {
"$Kind": "ComplexType",
"$Abstract": true,
"@Core.Description": "Maps a property of the Semantic Object to a property of the annotated entity type or a sibling property of the annotated property or a constant value",
"SemanticObjectProperty": { "@Core.Description": "Name of the Semantic Object property" }
},
"SemanticObjectMappingType": {
"$Kind": "ComplexType",
"@Core.Description": "Maps a property of the annotated entity type or a sibling property of the annotated property to a property of the Semantic Object",
"$BaseType": "Common.SemanticObjectMappingAbstract",
"LocalProperty": {
"$Type": "Edm.PropertyPath",
"@Core.Description": "Path to a local property that provides the value for the Semantic Object property"
},
"SemanticObjectProperty": { "@Core.Description": "Name of the Semantic Object property" }
}
},
"SemanticObjectMappingConstant": {
"$Kind": "ComplexType",
"$BaseType": "Common.SemanticObjectMappingAbstract",
"@Common.Experimental": true,
"Constant": {
"$Type": "Edm.PrimitiveType",
"@Core.Description": "Constant value for the Semantic Object property"
}
},
"SemanticObjectUnavailableActions": {
"$Kind": "Term",
Expand Down
Loading

0 comments on commit 83e3099

Please sign in to comment.