Skip to content

Commit 8a9531d

Browse files
committed
feat(byos): change public API field name
This is not a breaking change: the API does still support the old `document_identifier` name.
1 parent ca5459c commit 8a9531d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pygitguardian/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def scan_and_create_incidents(
584584
"source_uuid": source_uuid,
585585
"documents": [
586586
{
587-
"document_identifier": document["filename"],
587+
"filename": document["filename"],
588588
"document": document["document"],
589589
}
590590
for document in request_obj

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def test_scan_and_create_incidents_payload_structure(client: GGClient):
667667
"documents": [
668668
{
669669
"document": DOCUMENT,
670-
"document_identifier": FILENAME,
670+
"filename": FILENAME,
671671
}
672672
],
673673
"source_uuid": source_uuid,

0 commit comments

Comments
 (0)