Skip to content

Commit baf304c

Browse files
add length constraints
1 parent 0f7a417 commit baf304c

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

defs/app_components_oas.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ components:
289289
description: >-
290290
The label of the option. Limit 80 characters.
291291
type: string
292+
maxLength: 80
292293
example: 'Opt in'
293294
DropdownOption:
294295
description: >-
@@ -307,6 +308,7 @@ components:
307308
description: >-
308309
The label of the option. Limit 80 characters.
309310
type: string
311+
maxLength: 80
310312
example: 'Red'
311313
icon_url:
312314
description: >-
@@ -358,6 +360,7 @@ components:
358360
description: >-
359361
The text (i.e., label) for the field. Limit 50 characters.
360362
type: string
363+
maxLength: 50
361364
example: 'Please enter the following details:'
362365
style:
363366
description: >-
@@ -391,6 +394,7 @@ components:
391394
description: >-
392395
The text (i.e., label) to show in the title of the field. Limit 50 characters.
393396
type: string
397+
maxLength: 50
394398
example: 'Resource name'
395399
is_required:
396400
description: >-
@@ -425,6 +429,7 @@ components:
425429
description: >-
426430
The value of the field. If not provided, the field will be empty and the form cannot be submitted if it is required. Limit 200 characters.
427431
type: string
432+
maxLength: 200
428433
example: "Annual Kick-Off Meeting"
429434
FormField-MultiLineText:
430435
description: >-
@@ -450,6 +455,7 @@ components:
450455
description: >-
451456
The text (i.e., label) to show in the title of the field. Limit 50 characters.
452457
type: string
458+
maxLength: 50
453459
example: 'Resource name'
454460
is_required:
455461
description: >-
@@ -476,6 +482,7 @@ components:
476482
description: >-
477483
The value of the field. If not provided, the field will be empty and the form cannot be submitted if it is required. Limit 3000 characters.
478484
type: string
485+
maxLength: 3000
479486
example: "Annual Kick-Off Meeting"
480487
FormField-RichText:
481488
description: >-
@@ -501,6 +508,7 @@ components:
501508
description: >-
502509
The text (i.e., label) to show in the title of the field. Limit 50 characters.
503510
type: string
511+
maxLength: 50
504512
example: 'Resource name'
505513
is_required:
506514
description: >-
@@ -527,6 +535,7 @@ components:
527535
description: >-
528536
The value of the field. If not provided, the field will be empty and the form cannot be submitted if it is required. Limit 3000 characters.
529537
type: string
538+
maxLength: 3000
530539
example: "Annual Kick-Off Meeting"
531540
FormField-Dropdown:
532541
description: >-
@@ -536,6 +545,7 @@ components:
536545
- id
537546
- type
538547
- options
548+
maxProperties: 50
539549
properties:
540550
type:
541551
description: >-
@@ -553,6 +563,7 @@ components:
553563
description: >-
554564
The text (i.e., label) to show in the title of the field. Limit 50 characters.
555565
type: string
566+
maxLength: 50
556567
example: 'Resource name'
557568
is_required:
558569
description: >-
@@ -597,6 +608,7 @@ components:
597608
- id
598609
- type
599610
- options
611+
maxProperties: 5
600612
properties:
601613
type:
602614
description: >-
@@ -614,6 +626,7 @@ components:
614626
description: >-
615627
The text (i.e., label) to show in the title of the field. Limit 50 characters.
616628
type: string
629+
maxLength: 50
617630
example: 'Resource name'
618631
is_required:
619632
description: >-
@@ -650,6 +663,7 @@ components:
650663
- id
651664
- type
652665
- options
666+
maxProperties: 10
653667
properties:
654668
type:
655669
description: >-
@@ -667,6 +681,7 @@ components:
667681
description: >-
668682
The text (i.e., label) to show in the title of the field. Limit 50 characters.
669683
type: string
684+
maxLength: 50
670685
example: 'Resource name'
671686
is_required:
672687
description: >-
@@ -722,6 +737,7 @@ components:
722737
description: >-
723738
The text (i.e., label) to show in the title of the field. Limit 50 characters.
724739
type: string
740+
maxLength: 50
725741
example: 'Date'
726742
is_required:
727743
description: >-
@@ -775,6 +791,7 @@ components:
775791
description: >-
776792
The text (i.e., label) to show in the title of the field. Limit 50 characters.
777793
type: string
794+
maxLength: 50
778795
example: 'Datetime'
779796
is_required:
780797
description: >-
@@ -829,6 +846,7 @@ components:
829846
description: >-
830847
The text (i.e., label) to show in the title of the field. Limit 50 characters.
831848
type: string
849+
maxLength: 50
832850
example: 'Statuses'
833851
is_required:
834852
description: >-
@@ -904,6 +922,7 @@ components:
904922
[FormField-RichText](/reference/modal-forms#formfield-richtext), [FormField-SingleLineText](/reference/modal-forms#formfield-singlelinetext),
905923
[FormField-StaticText](/reference/modal-forms#formfield-statictext), [FormField-Typeahead](/reference/modal-forms#formfield-typeahead)
906924
type: array
925+
maxItems: 30
907926
items:
908927
anyOf:
909928
- $ref: '#/components/schemas/FormField-Checkbox'
@@ -1187,6 +1206,7 @@ components:
11871206
description: >-
11881207
The label of the option. Limit 80 characters.
11891208
type: string
1209+
maxLength: 80
11901210
example: 'Radio Option 1'
11911211
sub_label:
11921212
description: >-
@@ -1320,6 +1340,7 @@ components:
13201340
description: >-
13211341
The text (i.e., label) to show in the title of the field. Limit 40 characters.
13221342
type: string
1343+
maxLength: 40
13231344
example: 'Status'
13241345
datetime:
13251346
description: >-
@@ -1352,11 +1373,13 @@ components:
13521373
description: >-
13531374
The text (i.e., label) to show in the title of the field. Limit 40 characters.
13541375
type: string
1376+
maxLength: 40
13551377
example: 'Status'
13561378
text:
13571379
description: >-
13581380
The text to show in the field. Limit 40 characters.
13591381
type: string
1382+
maxLength: 40
13601383
example: 'In Progress'
13611384
color:
13621385
description: >-
@@ -1400,11 +1423,13 @@ components:
14001423
description: >-
14011424
The text (i.e., label) to show in the title of the field. Limit 40 characters.
14021425
type: string
1426+
maxLength: 40
14031427
example: 'Status'
14041428
text:
14051429
description: >-
14061430
The text to show in the field. Limit 40 characters.
14071431
type: string
1432+
maxLength: 40
14081433
example: 'In Progress'
14091434
icon_url:
14101435
description: >-
@@ -1447,6 +1472,8 @@ components:
14471472
14481473
Valid object schemas: [WidgetField-DatetimeWithIcon](/reference/widgets#widgetfield-datetimewithicon), [WidgetField-Pill](/reference/widgets#widgetfield-pill), [WidgetField-TextWithIcon](/reference/widgets#widgetfield-textwithicon).
14491474
type: array
1475+
minItems: 1
1476+
maxItems: 5
14501477
items:
14511478
anyOf:
14521479
- $ref: '#/components/schemas/DatetimeWithIcon'

0 commit comments

Comments
 (0)