Skip to content

Commit 1971e94

Browse files
author
Cyrus Radfar
committed
Added documentation of key/field name dependency from payload.py
1 parent 4644e78 commit 1971e94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python_anvil/api_resources/payload.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ class DocumentUpload(FileCompatibleBaseModel):
179179
# the client library side.
180180
# This might be a bug on the `pydantic` side(?) when this object gets
181181
# converted into a dict.
182+
183+
# NOTE: This field name is referenced in the models.py file, if you change it you
184+
# must change the reference
182185
file: Any = None
183186
fields: List[SignatureField]
184187
font_size: int = 14
@@ -207,6 +210,9 @@ class CreateEtchPacketPayload(FileCompatibleBaseModel):
207210

208211
name: str
209212
signers: List[EtchSigner]
213+
# NOTE: This is a list of `AttachableEtchFile` objects, but we need to
214+
# override the default `FileCompatibleBaseModel` to handle multipart/form-data
215+
# uploads correctly. This field name is referenced in the models.py file.
210216
files: List["AttachableEtchFile"]
211217
signature_email_subject: Optional[str] = None
212218
signature_email_body: Optional[str] = None

0 commit comments

Comments
 (0)