Skip to content

Commit 9589d58

Browse files
committed
chore(fernignore): protect manual fixes from generator overwrite
- Add client.py to fernignore (custom access_token and session ID support) - Add wire test files to fernignore (test implementation fixes) - Improve comments with clear explanations for each protected file
1 parent 97a31a9 commit 9589d58

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.fernignore

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
1-
# manual fix wiremock/wiremock-mappings.json due to x-fern-sdk-method-name
2-
wiremock/wiremock-mappings.json
1+
# WireMock mappings manually fixed to handle x-fern-sdk-method-name attribute
2+
# Generator doesn't properly handle this attribute, so mappings must be manually maintained
3+
wiremock/wiremock-mappings.json
4+
5+
# Custom client implementation extending BaseClient with additional features:
6+
# - access_token parameter support (Bearer token authentication)
7+
# - Automatic session ID generation and header injection (x-deepgram-session-id)
8+
# This file is manually maintained and should not be regenerated
9+
src/deepgram/client.py
10+
11+
# Wire test files with manual fixes to correct generator output:
12+
# - test_listen_v1_media.py: Fixed transcribe_file() call to pass required request parameter (bytes)
13+
# - test_speak_v1_audio.py: Fixed generate() call to consume iterator for request completion
14+
# - conftest.py: Changed from generated DeepgramApi to BaseClient for WireMock compatibility
15+
tests/wire/test_listen_v1_media.py
16+
tests/wire/test_speak_v1_audio.py
17+
tests/wire/conftest.py

0 commit comments

Comments
 (0)