Skip to content

Commit 6d59a37

Browse files
committed
fix: fix the schema and schema validation tests
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent 23a814c commit 6d59a37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.ci/validation/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export module SWSchemaValidator {
2424
const ajv = new Ajv({ strict: false, allowUnionTypes: true });
2525
addFormats(ajv);
2626

27-
const workflowSchemaId = "https://serverlessworkflow.io/schemas/1.0.1/workflow.yaml";
27+
const workflowSchemaId = "https://serverlessworkflow.io/schemas/1.0.2/workflow.yaml";
2828
const schemaPath = "../../../schema";
2929
export const defaultEncoding = "utf-8";
3030

@@ -61,7 +61,7 @@ export module SWSchemaValidator {
6161
const validate = ajv.getSchema(workflowSchemaId);
6262

6363
if (!validate) {
64-
throw new Error(`Failed to validate schema on workflow`);
64+
throw new Error(`Unable to find schema with id '${workflowSchemaId }'`);
6565
}
6666

6767
const isValid = validate(workflow);

schema/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ $defs:
586586
call:
587587
type: string
588588
not:
589-
enum: ["asyncapi", "grpc", "http", "openapi", "a2a"]
589+
enum: ["asyncapi", "grpc", "http", "openapi", "a2a", "mcp"]
590590
description: The name of the function to call.
591591
with:
592592
type: object

0 commit comments

Comments
 (0)