From 6c1994f8ab74b54810d24daa7c0633ea1b9ea2ef Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 May 2024 20:27:37 -0500 Subject: [PATCH] fix: fix api docs no option issue --- src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts b/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts index d0e23a5d..f9ebe5e8 100644 --- a/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts +++ b/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts @@ -42,11 +42,10 @@ export class DfApiDocsComponent implements OnInit, AfterContentInit { ngOnInit(): void { this.activatedRoute.data.subscribe(({ data }) => { if (data) { - this.apiDocJson = mapCamelToSnake(data); + this.apiDocJson = { ...data, paths: mapCamelToSnake(data.paths) }; } }); } - ngAfterContentInit(): void { const apiDocumentation = this.apiDocJson; SwaggerUI({