diff --git a/fern/apis/fdr/definition/api/v1/read/__package__.yml b/fern/apis/fdr/definition/api/v1/read/__package__.yml index 3bb0c6c2be..8552c37049 100644 --- a/fern/apis/fdr/definition/api/v1/read/__package__.yml +++ b/fern/apis/fdr/definition/api/v1/read/__package__.yml @@ -101,6 +101,9 @@ types: properties: nameOverride: optional headerWireValue: string + prefix: + type: optional + docs: The prefix that comes before the header errors: ApiDoesNotExistError: diff --git a/fern/apis/fdr/definition/api/v1/register/__package__.yml b/fern/apis/fdr/definition/api/v1/register/__package__.yml index 06631d7a20..07bd2b296f 100644 --- a/fern/apis/fdr/definition/api/v1/register/__package__.yml +++ b/fern/apis/fdr/definition/api/v1/register/__package__.yml @@ -126,6 +126,9 @@ types: properties: nameOverride: optional headerWireValue: string + prefix: + type: optional + docs: The prefix that comes before the header EndpointExampleGenerationErrorBody: properties: diff --git a/packages/ui/app/src/api-playground/utils.ts b/packages/ui/app/src/api-playground/utils.ts index fc0fd0ef63..1474393058 100644 --- a/packages/ui/app/src/api-playground/utils.ts +++ b/packages/ui/app/src/api-playground/utils.ts @@ -311,7 +311,9 @@ function buildRedactedHeaders( if (auth.type === "header") { const value = header.headers[auth.headerWireValue]; if (value != null) { - headers[auth.headerWireValue] = obfuscateSecret(value); + headers[auth.headerWireValue] = obfuscateSecret( + auth.prefix != null ? `${auth.prefix} ${value}` : value, + ); } } }, @@ -387,7 +389,7 @@ export function buildUnredactedHeaders( if (auth.type === "header") { const value = header.headers[auth.headerWireValue]; if (value != null) { - headers[auth.headerWireValue] = value; + headers[auth.headerWireValue] = auth.prefix != null ? `${auth.prefix} ${value}` : value; } } },