@@ -447,6 +447,8 @@ type StringOption struct {
447
447
DescriptionLocalizations StringLocales `json:"description_localizations,omitempty"`
448
448
Required bool `json:"required"`
449
449
Choices []StringChoice `json:"choices,omitempty"`
450
+ MinLength option.Int `json:"min_length,omitempty"`
451
+ MaxLength option.Int `json:"max_length,omitempty"`
450
452
// Autocomplete must not be true if Choices are present.
451
453
Autocomplete bool `json:"autocomplete"`
452
454
// LocalizedOptionName is only populated when this is received from
@@ -480,8 +482,8 @@ type IntegerOption struct {
480
482
Description string `json:"description"`
481
483
DescriptionLocalizations StringLocales `json:"description_localizations,omitempty"`
482
484
Required bool `json:"required"`
483
- Min option.Int `json:"min_value,omitempty"`
484
- Max option.Int `json:"max_value,omitempty"`
485
+ MinValue option.Int `json:"min_value,omitempty"`
486
+ MaxValue option.Int `json:"max_value,omitempty"`
485
487
Choices []IntegerChoice `json:"choices,omitempty"`
486
488
// Autocomplete must not be true if Choices are present.
487
489
Autocomplete bool `json:"autocomplete"`
@@ -627,8 +629,8 @@ type NumberOption struct {
627
629
Description string `json:"description"`
628
630
DescriptionLocalizations StringLocales `json:"description_localizations,omitempty"`
629
631
Required bool `json:"required"`
630
- Min option.Float `json:"min_value,omitempty"`
631
- Max option.Float `json:"max_value,omitempty"`
632
+ MinValue option.Float `json:"min_value,omitempty"`
633
+ MaxValue option.Float `json:"max_value,omitempty"`
632
634
Choices []NumberChoice `json:"choices,omitempty"`
633
635
// Autocomplete must not be true if Choices are present.
634
636
Autocomplete bool `json:"autocomplete"`
0 commit comments