fix: updated searchBy definition to array instead of string (#870)
This commit is contained in:
parent
76a0604ca8
commit
9d4049beb1
@ -144,6 +144,7 @@ function SearchBy(paginateConfig: PaginateConfig<any>) {
|
|||||||
${li('Available Fields', paginateConfig.searchableColumns)}
|
${li('Available Fields', paginateConfig.searchableColumns)}
|
||||||
`,
|
`,
|
||||||
required: false,
|
required: false,
|
||||||
|
isArray: true,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -226,9 +226,12 @@ describe('PaginatedEndpoint decorator', () => {
|
|||||||
description:
|
description:
|
||||||
'List of fields to search by term to filter result values\n <p>\n <b>Example: </b> name\n </p>\n <p>\n <b>Default Value: </b> By default all fields mentioned below will be used to search by term\n </p>\n <h4>Available Fields</h4><ul><li>name</li></ul>\n ',
|
'List of fields to search by term to filter result values\n <p>\n <b>Example: </b> name\n </p>\n <p>\n <b>Default Value: </b> By default all fields mentioned below will be used to search by term\n </p>\n <h4>Available Fields</h4><ul><li>name</li></ul>\n ',
|
||||||
schema: {
|
schema: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'select',
|
name: 'select',
|
||||||
required: false,
|
required: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user