From 2f8f42b4791a8910d127bcdcbff43afc4fe7beb8 Mon Sep 17 00:00:00 2001 From: Travis Hoover Date: Thu, 2 Jul 2026 06:58:50 -0700 Subject: [PATCH] Preserve wire (snake_case) field names in generated SDK models Set preserveModelFieldNames: true so generated TypeScript models keep the exact field names from the OpenAPI spec (e.g. agent_id, request_id) instead of normalizing them to camelCase. This makes the SDK surface match the raw API response 1:1, including the API's mixed snake_case/camelCase wire fields. --- .speakeasy/gen.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 419719e1..4c29ac33 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -116,7 +116,7 @@ typescript: outputModelSuffix: output packageName: '@gleanwork/api-client' preApplyUnionDiscriminators: true - preserveModelFieldNames: false + preserveModelFieldNames: true privateIdentifierPrefix: '#' requestExtras: false responseFormat: flat