-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathform_field_value.py
More file actions
45 lines (36 loc) · 1.38 KB
/
Copy pathform_field_value.py
File metadata and controls
45 lines (36 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file was auto-generated by Fern from our API Definition.
import typing
import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .form_field_value_type import FormFieldValueType
class FormFieldValue(UniversalBaseModel):
"""
An object containing field info for a specific fieldID.
"""
display_name: typing_extensions.Annotated[
typing.Optional[str],
FieldMetadata(alias="displayName"),
pydantic.Field(alias="displayName", description="The field name displayed on the site"),
] = None
type: typing.Optional[FormFieldValueType] = pydantic.Field(default=None)
"""
The field type
"""
placeholder: typing.Optional[str] = pydantic.Field(default=None)
"""
The placeholder text for the field
"""
user_visible: typing_extensions.Annotated[
typing.Optional[bool],
FieldMetadata(alias="userVisible"),
pydantic.Field(alias="userVisible", description="Whether the field is visible to the user"),
] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow