From 8a9531d57c07a7fb23dbdee78bd80d76fb91d3e5 Mon Sep 17 00:00:00 2001 From: Corentin Garcia Date: Mon, 11 Aug 2025 11:56:52 +0200 Subject: [PATCH] feat(byos): change public API field name This is not a breaking change: the API does still support the old `document_identifier` name. --- pygitguardian/client.py | 2 +- tests/test_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pygitguardian/client.py b/pygitguardian/client.py index 8a323e09..38dceda4 100644 --- a/pygitguardian/client.py +++ b/pygitguardian/client.py @@ -584,7 +584,7 @@ def scan_and_create_incidents( "source_uuid": source_uuid, "documents": [ { - "document_identifier": document["filename"], + "filename": document["filename"], "document": document["document"], } for document in request_obj diff --git a/tests/test_client.py b/tests/test_client.py index 9a6890f3..13979e10 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -667,7 +667,7 @@ def test_scan_and_create_incidents_payload_structure(client: GGClient): "documents": [ { "document": DOCUMENT, - "document_identifier": FILENAME, + "filename": FILENAME, } ], "source_uuid": source_uuid,