Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fixed

- Resolving of `impl` for `ProcessService`
- Replace `DecimalFloat` with `Double` for imported processes

## Version 0.2.0 - 2026-04-02

Expand Down
2 changes: 1 addition & 1 deletion lib/processImport/schemaMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function resolvePrimitiveOrRef(
case 'boolean':
return csn.CdsBuiltinType.Boolean;
case 'number':
return csn.CdsBuiltinType.DecimalFloat;
return csn.CdsBuiltinType.Double;
case 'integer':
return csn.CdsBuiltinType.Integer;
default:
Expand Down
3 changes: 2 additions & 1 deletion lib/types/csn-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export enum CdsBuiltinType {
UInt32 = 'cds.UInt32',
Integer64 = 'cds.Integer64',
Decimal = 'cds.Decimal',
DecimalFloat = 'cds.DecimalFloat',
DecimalFloat = 'cds.Double',
Comment thread
SirSimon04 marked this conversation as resolved.
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
Double = 'cds.Double',
Date = 'cds.Date',
Time = 'cds.Time',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* checksum : b2be28c9da2617d511526b2f68e5e6b0 */
/* checksum : 8a1749afc0e7bf9550b461d58d5f2106 */
namespace eu12.cdsmunich.capprocesspluginhybridtest;

/** DO NOT EDIT. THIS IS A GENERATED SERVICE THAT WILL BE OVERRIDDEN ON NEXT IMPORT. */
Expand Down Expand Up @@ -33,7 +33,7 @@ service ImportProcess_Attributes_And_OutputsService {

type ProcessInputs {
stringattribute : String not null;
intattribute : DecimalFloat not null;
intattribute : Double not null;
complexe : ProcessInputs_complexe_Array not null;
optionalcomplexe : ImportProcess_Complex_DataType;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* checksum : 7e054e53e107a7f5c8375eb51a454e7f */
/* checksum : bb9fb1b6c7b7cfb1678dd363f77435ae */
namespace eu12.cdsmunich.capprocesspluginhybridtest;

/** DO NOT EDIT. THIS IS A GENERATED SERVICE THAT WILL BE OVERRIDDEN ON NEXT IMPORT. */
Expand All @@ -7,7 +7,7 @@ namespace eu12.cdsmunich.capprocesspluginhybridtest;
service ImportProcess_Simple_InputsService {
type ProcessInputs {
string : String not null;
number : DecimalFloat not null;
number : Double not null;
_boolean : Boolean not null;
date : Date not null;
datetime : Timestamp not null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"uid": "5edc02ff-ce9a-4aaf-94bb-440b0c981a20",
"name": "ImportProcess_Attributes_And_Outputs",
"identifier": "importProcess_Attributes_And_Outputs",
"description": "",
"type": "bpi.process",
"projectId": "eu12.cdsmunich.capprocesspluginhybridtest",
"createdAt": "2026-03-18T10:23:31.648909Z",
"updatedAt": "2026-03-18T12:48:22.484258Z",
"header": {
"inputs": {
"title": "inputs",
Expand All @@ -12,28 +13,23 @@
"definitions": {
"date": {
"type": "string",
"format": "date",
"title": "date"
"format": "date"
},
"dateTime": {
"type": "string",
"format": "date-time",
"title": "dateTime"
"format": "date-time"
},
"password": {
"type": "string",
"password": true,
"title": "password"
"password": true
},
"time": {
"type": "string",
"format": "time",
"title": "time"
"format": "time"
},
"documentFolder": {
"type": "string",
"format": "document-folder",
"title": "documentFolder"
"format": "document-folder"
}
},
"properties": {
Expand All @@ -54,8 +50,7 @@
"refName": "ImportProcess_Complex_DataType"
},
"title": "Complexe",
"description": "",
"refName": "ImportProcess_Complex_DataType"
"description": ""
},
"optionalcomplexe": {
"$ref": "$.11cbfe86-2e73-4198-868a-d7a2115d82c1",
Expand All @@ -77,28 +72,23 @@
"definitions": {
"date": {
"type": "string",
"format": "date",
"title": "date"
"format": "date"
},
"dateTime": {
"type": "string",
"format": "date-time",
"title": "dateTime"
"format": "date-time"
},
"password": {
"type": "string",
"password": true,
"title": "password"
"password": true
},
"time": {
"type": "string",
"format": "time",
"title": "time"
"format": "time"
},
"documentFolder": {
"type": "string",
"format": "document-folder",
"title": "documentFolder"
"format": "document-folder"
}
},
"properties": {
Expand All @@ -125,8 +115,7 @@
"refName": "ImportProcess_Complex_DataType"
},
"title": "Complexe",
"description": "",
"refName": "ImportProcess_Complex_DataType"
"description": ""
}
},
"required": [
Expand All @@ -135,6 +124,8 @@
]
},
"processAttributes": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "processAttributes",
"type": "object",
"properties": {},
"required": []
Expand All @@ -146,12 +137,17 @@
"type": "both"
}
],
"identifier": "importProcess_Attributes_And_Outputs",
"valid": true,
"projectId": "eu12.cdsmunich.capprocesspluginhybridtest",
"dataTypes": [
{
"uid": "11cbfe86-2e73-4198-868a-d7a2115d82c1",
"name": "ImportProcess_Complex_DataType",
"identifier": "ImportProcess_Complex_DataType",
"description": "",
"type": "datatype",
"createdAt": "2026-03-18T10:28:54.794097Z",
"updatedAt": "2026-03-18T10:31:37.975015Z",
"header": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
Expand All @@ -164,22 +160,19 @@
"properties": {
"SubString1": {
"type": "string",
"uid": "567555b3-ffee-41d4-a650-e9006ca9c5f6",
"title": "SubString1"
"uid": "567555b3-ffee-41d4-a650-e9006ca9c5f6"
},
"Substring2": {
"type": "string",
"uid": "794440a0-a06e-4fa6-a703-1f8fe4bc9d94",
"title": "Substring2"
"uid": "794440a0-a06e-4fa6-a703-1f8fe4bc9d94"
}
},
"required": [
"SubString1",
"Substring2"
]
},
"type": "array",
"title": "StringList"
"type": "array"
},
"StringType": {
"type": "object",
Expand All @@ -194,27 +187,21 @@
"uid": "f3dd8f45-fcd2-4fe2-9d2f-868e51f52b64",
"properties": {
"SubSubSubDate": {
"type": "string",
"format": "date",
"title": "SubSubSubDate"
"uid": "361a2e90-c32d-421d-8077-6a412436f031",
"$ref": "#/definitions/date"
},
"SubSubSubPassword": {
"type": "string",
"password": true,
"title": "SubSubSubPassword"
"uid": "9901ea3d-4e0f-4421-981e-22fbc0d35cc6",
"$ref": "#/definitions/password"
},
"SubSubSubAny": {
"uid": "99fd32c0-7ce9-4c22-bb85-890160827365",
"title": "SubSubSubAny"
"uid": "99fd32c0-7ce9-4c22-bb85-890160827365"
}
},
"title": "SubSubStringType"
}
}
},
"title": "SubStringType"
}
}
},
"title": "StringType"
}
}
},
"required": [
Expand All @@ -223,18 +210,17 @@
"definitions": {
"password": {
"type": "string",
"password": true,
"title": "password"
"password": true
},
"date": {
"type": "string",
"format": "date",
"title": "date"
"format": "date"
}
},
"version": 1,
"description": ""
}
"version": 1
},
"identifier": "importProcess_Complex_DataType",
"valid": true
}
]
}
Loading
Loading