langchain 0.3.31 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -149,9 +149,10 @@ function convertOpenAPISchemaToJSONSchema(schema, spec) {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
if (schema.type === "array") {
|
|
152
|
+
const openAPIItems = spec.getSchema(schema.items) ?? {};
|
|
152
153
|
return {
|
|
153
154
|
type: "array",
|
|
154
|
-
items: convertOpenAPISchemaToJSONSchema(
|
|
155
|
+
items: convertOpenAPISchemaToJSONSchema(openAPIItems, spec),
|
|
155
156
|
minItems: schema.minItems,
|
|
156
157
|
maxItems: schema.maxItems,
|
|
157
158
|
};
|
|
@@ -144,9 +144,10 @@ export function convertOpenAPISchemaToJSONSchema(schema, spec) {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
if (schema.type === "array") {
|
|
147
|
+
const openAPIItems = spec.getSchema(schema.items) ?? {};
|
|
147
148
|
return {
|
|
148
149
|
type: "array",
|
|
149
|
-
items: convertOpenAPISchemaToJSONSchema(
|
|
150
|
+
items: convertOpenAPISchemaToJSONSchema(openAPIItems, spec),
|
|
150
151
|
minItems: schema.minItems,
|
|
151
152
|
maxItems: schema.maxItems,
|
|
152
153
|
};
|