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 ou apenas comentar a descrição
                        "rowId": "rowId 001"
                    },
                    {
                        "title": "Title row 02",
                        "rowId": "rowId 002"
                    }
                ]
            }
}
This commit is contained in:
Luis-Fernando 2024-04-02 14:36:22 -03:00 committed by GitHub
parent b87558d301
commit 08cf247804
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'),
},
},