Skip to content

Commit 0b2ce3e

Browse files
committed
feat(fiori-mcp-server): app-gen common schema
1 parent d6dffa8 commit 0b2ce3e

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

packages/fiori-mcp-server/src/tools/schemas/cap-schema.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
import * as z from 'zod';
1+
import { z } from 'zod';
22
import { convertToSchema } from '../utils';
3-
import { version, entityConfig, floorplan, project, serviceCap as service } from './appgen-config-schema-props';
3+
import {
4+
entityConfig,
5+
floorplan,
6+
project,
7+
projectType,
8+
serviceCap as service,
9+
telemetryData,
10+
version
11+
} from './appgen-config-schema-props';
412

513
export const generatorConfigCAP = z.object({
614
entityConfig,
715
floorplan,
816
project,
17+
projectType,
918
service,
19+
telemetryData,
1020
version
1121
}).describe(`The configuration that will be used for the Application UI generation.
1222
The configuration **MUST** be a valid JSON object corresponding to the inputSchema of the functionality.`);

packages/fiori-mcp-server/src/tools/schemas/odata-schema.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {
1111
} from './appgen-config-schema-props';
1212

1313
export const generatorConfigOData = z.object({
14-
version,
14+
entityConfig,
1515
floorplan,
16-
projectType,
1716
project,
17+
projectType,
1818
service,
19-
entityConfig,
20-
telemetryData
19+
telemetryData,
20+
version
2121
}).describe(`The configuration that will be used for the Application UI generation.
2222
The configuration **MUST** be a valid JSON object corresponding to the inputSchema of the functionality.
2323
The configuration **MUST** be based on the project files in the projectPath (if a project exists).`);

0 commit comments

Comments
 (0)