From 2748aac024fef53aafb2598d835cb3ac874b348a Mon Sep 17 00:00:00 2001 From: Peter Golm Date: Tue, 4 Jul 2017 09:15:22 +0200 Subject: [PATCH] feat: Add special rendering for deprecated operations (#290) * Add special rendering for deprecated operations * Change styling of deprecated operation header --- demo/swagger.yaml | 1 + lib/components/Operation/operation.html | 2 +- lib/components/Operation/operation.scss | 12 ++++++++++++ lib/components/Operation/operation.ts | 2 ++ lib/components/SideMenu/side-menu-items.html | 2 +- lib/components/SideMenu/side-menu-items.scss | 5 +++++ lib/services/menu.service.ts | 3 ++- 7 files changed, 24 insertions(+), 3 deletions(-) diff --git a/demo/swagger.yaml b/demo/swagger.yaml index 63a0bcbb1d..7ffec7508d 100644 --- a/demo/swagger.yaml +++ b/demo/swagger.yaml @@ -336,6 +336,7 @@ paths: summary: Finds Pets by tags description: 'Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.' operationId: findPetsByTags + deprecated: true produces: - application/xml - application/json diff --git a/lib/components/Operation/operation.html b/lib/components/Operation/operation.html index 4fa9a34522..67bf81334a 100644 --- a/lib/components/Operation/operation.html +++ b/lib/components/Operation/operation.html @@ -1,6 +1,6 @@
-

+

{{operation.summary}}

-