Skip to content

Commit 335179f

Browse files
Fannongawlitza
andauthored
Add @ObjectModel.custom annotation (#64)
* Add @ObjectModel.custom annotation Signed-off-by: Simon Heimler <simon.heimler@sap.com> * Run generate Signed-off-by: Simon Heimler <simon.heimler@sap.com> * Update spec/v1/annotations/object-model.yaml Co-authored-by: Thomas Martin Gawlitza <Thomas.Gawlitza@gmail.com> * Formatting Signed-off-by: Simon Heimler <simon.heimler@sap.com> * Update spec/v1/annotations/object-model.yaml * Update spec/v1/annotations/object-model.yaml Co-authored-by: Thomas Martin Gawlitza <Thomas.Gawlitza@gmail.com> * Fix changelog merge Signed-off-by: Simon Heimler <simon.heimler@sap.com> * Fix changelog merge Signed-off-by: Simon Heimler <simon.heimler@sap.com> * Format Signed-off-by: Simon Heimler <simon.heimler@sap.com> --------- Signed-off-by: Simon Heimler <simon.heimler@sap.com> Co-authored-by: Thomas Martin Gawlitza <Thomas.Gawlitza@gmail.com>
1 parent df76503 commit 335179f

File tree

7 files changed

+197
-24
lines changed

7 files changed

+197
-24
lines changed

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ For a roadmap including expected timeline, please refer to [ROADMAP.md](./ROADMA
1010

1111
## [unreleased]
1212

13+
## [1.0.6]
14+
15+
### Added
16+
17+
- Added `@ObjectModel.custom` annotation
18+
1319
## [1.0.5]
1420

1521
### Fixed
@@ -37,14 +43,14 @@ For a roadmap including expected timeline, please refer to [ROADMAP.md](./ROADMA
3743

3844
## [1.0.3]
3945

40-
### Fixed
41-
42-
- Fixed the "scope" of annotations that belong to type, that they also apply to type definitions
43-
4446
### Added
4547

4648
- Added `@ObjectModel.tenantWideUniqueName` annotation
4749

50+
### Fixed
51+
52+
- Fixed the "scope" of annotations that belong to type, that they also apply to type definitions
53+
4854
## [1.0.2]
4955

5056
### Added

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json.schemastore.org/package",
33
"name": "@sap/csn-interop-specification",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"description": "CSN Interop Specification.",
66
"author": "SAP SE",
77
"license": "Apache-2.0",
@@ -56,9 +56,9 @@
5656
"@types/fs-extra": "11.0.4",
5757
"@types/jest": "29.5.14",
5858
"@types/js-yaml": "4.0.9",
59-
"@types/lodash": "4.17.16",
59+
"@types/lodash": "4.17.17",
6060
"@types/minimist": "1.2.5",
61-
"@types/node": "22.15.18",
61+
"@types/node": "22.15.21",
6262
"fast-glob": "3.3.3",
6363
"fs-extra": "11.3.0",
6464
"gfm-escape": "0.2.0",
@@ -75,7 +75,7 @@
7575
"react": "18.3.1",
7676
"react-dom": "18.3.1",
7777
"rimraf": "6.0.1",
78-
"ts-jest": "29.3.2",
78+
"ts-jest": "29.3.4",
7979
"tsx": "4.19.4",
8080
"typescript": "5.8.3"
8181
},

spec/v1/annotations/object-model.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ definitions:
3333
title: Element Reference
3434
ref: "#/definitions/ElementReference"
3535

36+
"@ObjectModel.custom":
37+
type: boolean
38+
description: |-
39+
Indicates whether the annotated element or entity is a custom element.
40+
If set to true, it is a custom element (field, entity, service, etc.).
41+
If undefined or set to false, it is not defined whether it is a custom element.
42+
43+
If applied to an entity or service, everything that it contains is also considered custom.
44+
x-extension-targets:
45+
- "Type"
46+
- "Entity"
47+
- "Service"
48+
3649
"@ObjectModel.modelingPattern":
3750
type: object
3851
description: |-

0 commit comments

Comments
 (0)