Skip to content

Commit 37a2685

Browse files
committed
replace dot in name
1 parent 2c7ec41 commit 37a2685

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/N8NPropertiesBuilder.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ test('query param - dot in field name', () => {
391391
},
392392
{
393393
displayName: 'Filter All',
394-
name: 'filter.all',
394+
name: 'filter-all',
395395
type: 'boolean',
396396
displayOptions: {
397397
show: {

src/n8n/SchemaToINodeProperties.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class N8NINodeProperties {
102102
}
103103
const fieldParameterKeys: Partial<INodeProperties> = {
104104
displayName: lodash.startCase(parameter.name),
105-
name: parameter.name,
105+
name: parameter.name.replace(".", "-"),
106106
required: parameter.required,
107107
description: parameter.description,
108108
default: parameter.example,
@@ -157,7 +157,7 @@ export class N8NINodeProperties {
157157
const fieldSchemaKeys: FromSchemaNodeProperty = this.fromSchema(property)
158158
const fieldParameterKeys: Partial<INodeProperties> = {
159159
displayName: lodash.startCase(name),
160-
name: name,
160+
name: name.replace(".", "-"),
161161
}
162162
const field = combine(fieldParameterKeys, fieldSchemaKeys)
163163
return field

0 commit comments

Comments
 (0)