From 2c0df8d4675e0370fd3e84260fe3b8f6bd47b098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 25 Jun 2024 11:50:12 +0200 Subject: [PATCH] fix: Delete duplicate properties in Structured Output Parser Node (no-changelog) (#9855) --- .../OutputParserStructured.node.ts | 75 ------------------- 1 file changed, 75 deletions(-) diff --git a/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts b/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts index dc40a47c4a..027ce04e6e 100644 --- a/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts @@ -129,8 +129,6 @@ export class OutputParserStructured implements INodeType { }, { ...inputSchemaField, - displayName: 'JSON Schema', - description: 'JSON Schema to structure and validate the output against', default: `{ "type": "object", "properties": { @@ -146,79 +144,6 @@ export class OutputParserStructured implements INodeType { } }`, }, - { - displayName: 'Schema Type', - name: 'schemaType', - type: 'options', - noDataExpression: true, - options: [ - { - name: 'Generate From JSON Example', - value: 'fromJson', - description: 'Generate a schema from an example JSON object', - }, - { - name: 'Define Below', - value: 'manual', - description: 'Define the JSON schema manually', - }, - ], - default: 'fromJson', - description: 'How to specify the schema for the function', - displayOptions: { - show: { - '@version': [{ _cnd: { gte: 1.2 } }], - }, - }, - }, - { - displayName: 'JSON Example', - name: 'jsonSchemaExample', - type: 'json', - default: `{ - "state": "California", - "cities": ["Los Angeles", "San Francisco", "San Diego"] -}`, - noDataExpression: true, - typeOptions: { - rows: 10, - }, - displayOptions: { - show: { - schemaType: ['fromJson'], - }, - }, - description: 'Example JSON object to use to generate the schema', - }, - { - displayName: 'Input Schema', - name: 'inputSchema', - type: 'json', - default: `{ - "type": "object", - "properties": { - "state": { - "type": "string" - }, - "cities": { - "type": "array", - "items": { - "type": "string" - } - } - } -}`, - noDataExpression: true, - typeOptions: { - rows: 10, - }, - displayOptions: { - show: { - schemaType: ['manual'], - }, - }, - description: 'Schema to use for the function', - }, { displayName: 'JSON Schema', name: 'jsonSchema',