Skip to content

Commit 5febfc2

Browse files
authored
Merge pull request #153 from GitGuardian/corenting/change-byos-public-api-field-name
feat(byos): change public API field name
2 parents ca5459c + 8a9531d commit 5febfc2

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)