mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Delete duplicate properties in Structured Output Parser Node (no-changelog) (#9855)
This commit is contained in:
committed by
GitHub
parent
5cdcb61f66
commit
2c0df8d467
@@ -129,8 +129,6 @@ export class OutputParserStructured implements INodeType {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
...inputSchemaField,
|
...inputSchemaField,
|
||||||
displayName: 'JSON Schema',
|
|
||||||
description: 'JSON Schema to structure and validate the output against',
|
|
||||||
default: `{
|
default: `{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"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',
|
displayName: 'JSON Schema',
|
||||||
name: 'jsonSchema',
|
name: 'jsonSchema',
|
||||||
|
|||||||
Reference in New Issue
Block a user