/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
apps/api/src/app/shared/framework/swagger/injection.ts
8 строк
318 B
Richard Fontein
feat(api): Add common responses and headers to OpenAPI spec paths (#4922)
12 дек 2023, 16:09
Не верифицирован
12 дек 2023, 16:09
d78af03
Код
Авторство
О чём код?
import { OpenAPIObject } from '@nestjs/swagger'; import { injectReusableHeaders } from './headers.decorator'; export const injectDocumentComponents = (document: OpenAPIObject): OpenAPIObject => { const injectedResponseHeadersDocument = injectReusableHeaders(document); return injectedResponseHeadersDocument; };