diff --git a/packages/platform/src/HttpApiSecurity.ts b/packages/platform/src/HttpApiSecurity.ts index 503a3ce54b..aed9245f48 100644 --- a/packages/platform/src/HttpApiSecurity.ts +++ b/packages/platform/src/HttpApiSecurity.ts @@ -100,10 +100,14 @@ const Proto = { * @since 1.0.0 * @category constructors */ -export const bearer: Bearer = Object.assign(Object.create(Proto), { - _tag: "Bearer", - annotations: Context.empty() -}) +export const bearer = (options?: { + format?: string +}): Bearer => + Object.assign(Object.create(Proto), { + _tag: "Bearer", + format: options?.format, + annotations: Context.empty() + }) /** * Create an API key security scheme.