mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
Removido obrigatoriedade de descrição dos rows do sendList
Removida a obrigatoriedade da descrição do rows para ser algo opcional. Isso permite os "circulos" das opções ficarem mais alinhados com os titulos sem a necessidade de adicionar espaço em branco caso não queira adicionar a descrição. { "number": "559999999999 (Recipient number with Country Code)", "options": { "delay": 1200, "presence": "composing" }, "listMessage": { "title": "List Title", "description": "List description", "buttonText": "Click Here", "footerText": "footer list\nhttps://examplelink.com.br", "sections": [ { "title": "Row tilte 01", "rows": [ { "title": "Title row 01", "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,", "rowId": "rowId 001" }, { "title": "Title row 02", "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,", "rowId": "rowId 002" } ] } } Depois: { "number": "559999999999 (Recipient number with Country Code)", "options": { "delay": 1200, "presence": "composing" }, "listMessage": { "title": "List Title", "description": "List description", "buttonText": "Click Here", "footerText": "footer list\nhttps://examplelink.com.br", "sections": [ { "title": "Row tilte 01", "rows": [ { "title": "Title row 01", // "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,", //podendo remover por completo como foi feito no Title row 02 abaixo ou apenas comentar a descrição "rowId": "rowId 001" }, { "title": "Title row 02", "rowId": "rowId 002" } ] } }
This commit is contained in:
parent
cf3ec2b601
commit
2b8b6b086b
@ -406,7 +406,7 @@ export const listMessageSchema: JSONSchema7 = {
|
||||
description: { type: 'string' },
|
||||
rowId: { type: 'string' },
|
||||
},
|
||||
required: ['title', 'description', 'rowId'],
|
||||
required: ['title', 'rowId'],
|
||||
...isNotEmpty('title', 'description', 'rowId'),
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user