Skip to content

Commit 339feb3

Browse files
committed
Update cores and types file
1 parent 47be0d1 commit 339feb3

File tree

7 files changed

+5
-3
lines changed

7 files changed

+5
-3
lines changed

example/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def main():
7474
Website(
7575
label="my custom website",
7676
url="https://example.com",
77-
autofill_behavior="AnywhereOnWebsite"
77+
autofill_behavior="AnywhereOnWebsite",
7878
)
7979
],
8080
)
@@ -115,7 +115,7 @@ async def main():
115115
Website(
116116
label="my custom website 2",
117117
url="https://example2.com",
118-
autofill_behavior="Never"
118+
autofill_behavior="Never",
119119
),
120120
)
121121
updated_item = await client.items.put(item)
0 Bytes
Binary file not shown.
184 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.

src/onepassword/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ class ItemSection(BaseModel):
103103

104104

105105
class Website(BaseModel):
106+
model_config = ConfigDict(populate_by_name=True)
107+
106108
url: str
107109
"""
108110
The website URL
@@ -111,7 +113,7 @@ class Website(BaseModel):
111113
"""
112114
The label of the website, e.g. 'website', 'sign-in address'
113115
"""
114-
autofill_behavior: AutofillBehavior
116+
autofill_behavior: Annotated[AutofillBehavior, Field(alias="autofillBehavior")]
115117
"""
116118
The auto-fill behavior of the website
117119

0 commit comments

Comments
 (0)