Skip to content

Commit f5dd7c4

Browse files
authored
Merge pull request #23 from railsware/no-ticket/less-restrictive-output-schema
Remove strict from output schema to allow newly introduced properties
2 parents 5db5f85 + 11da899 commit f5dd7c4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/tools/get-data/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ const zodOutputSchema = z.object({
2222
data: z.array(
2323
z.record(z.unknown())
2424
).describe('The data returned from the query.'),
25-
}).strict()
25+
})
2626

27-
export const outputSchema = zodToJsonSchema(zodOutputSchema)
27+
export const outputSchema = zodToJsonSchema(zodOutputSchema)

src/tools/get-dataflow/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const zodOutputSchema = z.object({
2626
last_success_run_at: z.string().nullish().describe('The date and time of the last successful run of the source. ISO 8601 format.'),
2727
error_details: z.string().nullish().describe('The error details of the source.'),
2828
})).describe('The sources of the data flow.'),
29-
}).strict()
29+
})
3030
})
3131

3232
export const outputSchema = zodToJsonSchema(zodOutputSchema)

src/tools/list-dataflows/schema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ const zodOutputSchema = z.object({
88
z.object({
99
id: z.string().describe('The ID of the dataflow.'),
1010
name: z.string().describe('The name of the dataflow.'),
11-
last_successful_execution_id: z.string().nullish().describe('The ID of the last successful run (execution) of the dataflow.')
12-
}).strict()
11+
last_successful_execution_id: z.string().nullish().describe('The ID of the last successful run (execution) of the dataflow.'),
12+
last_success_run_at: z.string().nullish().describe('The date and time of the last successful run (execution) of the dataflow. ISO 8601 format.'),
13+
})
1314
)
1415
})
1516

0 commit comments

Comments
 (0)