MCPcopy Index your code
hub / github.com/Effect-TS/effect / processHttpApiSecurity

Function processHttpApiSecurity

packages/platform/src/OpenApi.ts:262–270  ·  view source on GitHub ↗
(
    name: string,
    security: HttpApiSecurity
  )

Source from the content-addressed store, hash-verified

260 }
261
262 function processHttpApiSecurity(
263 name: string,
264 security: HttpApiSecurity
265 ) {
266 if (spec.components.securitySchemes[name] !== undefined) {
267 return
268 }
269 spec.components.securitySchemes[name] = makeSecurityScheme(security)
270 }
271
272 processAnnotation(api.annotations, HttpApi.AdditionalSchemas, (componentSchemas) => {
273 componentSchemas.forEach((componentSchema) => processAST(componentSchema.ast))

Callers 2

fromApiFunction · 0.85
onEndpointFunction · 0.85

Calls 1

makeSecuritySchemeFunction · 0.85

Tested by

no test coverage detected