@@ -17528,38 +17528,48 @@ components:
1752817528 - contact
1752917529 - company
1753017530 example: contact
17531- data_type:
17532- type: string
17533- description: The type of data stored for this attribute.
17534- enum:
17535- - string
17536- - integer
17537- - float
17538- - boolean
17539- - datetime
17540- - date
17541- example: string
1754217531 description:
1754317532 type: string
1754417533 description: The readable description you see in the UI for the attribute.
1754517534 example: My Data Attribute Description
17546- options:
17547- type: array
17548- description: To create list attributes. Provide a set of hashes with `value`
17549- as the key of the options you want to make. `data_type` must be `string`.
17550- items:
17551- type: string
17552- example:
17553- - option1
17554- - option2
1755517535 messenger_writable:
1755617536 type: boolean
1755717537 description: Can this attribute be updated by the Messenger
1755817538 example: false
1755917539 required:
17560- - name
17561- - model
17562- - data_type
17540+ - name
17541+ - model
17542+ - data_type
17543+ oneOf:
17544+ - properties:
17545+ data_type:
17546+ enum:
17547+ - options
17548+ options:
17549+ type: array
17550+ description: Array of objects representing the options of the list, with `value` as the key and the option as the value. At least
17551+ two options are required.
17552+ items:
17553+ type: object
17554+ properties:
17555+ value:
17556+ type: string
17557+ example:
17558+ - value: 1-10
17559+ - value: 11-50
17560+ required:
17561+ - options
17562+ title: 'list attribute'
17563+ - properties:
17564+ data_type:
17565+ enum:
17566+ - string
17567+ - integer
17568+ - float
17569+ - boolean
17570+ - datetime
17571+ - date
17572+ title: 'other type'
1756317573 create_data_event_request:
1756417574 description: ''
1756517575 type: object
@@ -21771,19 +21781,28 @@ components:
2177121781 type: string
2177221782 description: The readable description you see in the UI for the attribute.
2177321783 example: My Data Attribute Description
21774- options:
21775- type: array
21776- description: To create list attributes. Provide a set of hashes with `value`
21777- as the key of the options you want to make. `data_type` must be `string`.
21778- items:
21779- type: string
21780- example:
21781- - option1
21782- - option2
2178321784 messenger_writable:
2178421785 type: boolean
2178521786 description: Can this attribute be updated by the Messenger
2178621787 example: false
21788+ oneOf:
21789+ - properties:
21790+ options:
21791+ type: array
21792+ description: Array of objects representing the options of the list, with `value` as the key and the option as the value. At least
21793+ two options are required.
21794+ items:
21795+ type: object
21796+ properties:
21797+ value:
21798+ type: string
21799+ example:
21800+ - value: 1-10
21801+ - value: 11-50
21802+ required:
21803+ - options
21804+ title: 'list attribute'
21805+ - title: 'other type'
2178721806 update_external_page_request:
2178821807 title: Update External Page Payload
2178921808 type: object
0 commit comments