From dd733a33892a492d1bbc3a43073d70a4d56229f2 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Wed, 19 Mar 2025 22:40:55 +0100 Subject: [PATCH] fix(sdk-js): mark schema as nullable to match python --- libs/sdk-js/src/schema.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/sdk-js/src/schema.ts b/libs/sdk-js/src/schema.ts index b75d63d02..054b34e97 100644 --- a/libs/sdk-js/src/schema.ts +++ b/libs/sdk-js/src/schema.ts @@ -57,25 +57,25 @@ export interface GraphSchema { * The schema for the input state. * Missing if unable to generate JSON schema from graph. */ - input_schema?: JSONSchema7; + input_schema?: JSONSchema7 | null | undefined; /** * The schema for the output state. * Missing if unable to generate JSON schema from graph. */ - output_schema?: JSONSchema7; + output_schema?: JSONSchema7 | null | undefined; /** * The schema for the graph state. * Missing if unable to generate JSON schema from graph. */ - state_schema?: JSONSchema7; + state_schema?: JSONSchema7 | null | undefined; /** * The schema for the graph config. * Missing if unable to generate JSON schema from graph. */ - config_schema?: JSONSchema7; + config_schema?: JSONSchema7 | null | undefined; } export type Subgraphs = Record;