fix: updated searchBy definition to array instead of string (#870)

This commit is contained in:
vaidas-dutrys 2024-02-16 10:51:09 +02:00 committed by GitHub
parent 76a0604ca8
commit 9d4049beb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -144,6 +144,7 @@ function SearchBy(paginateConfig: PaginateConfig<any>) {
${li('Available Fields', paginateConfig.searchableColumns)}
`,
required: false,
isArray: true,
type: 'string',
})
}

View File

@ -226,9 +226,12 @@ describe('PaginatedEndpoint decorator', () => {
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 ',
schema: {
type: 'array',
items: {
type: 'string',
},
},
},
{
name: 'select',
required: false,