Skip to content

fix: swagger tag added, additionalTags null fix#116

Open
Hardik-hi wants to merge 1 commit intoshiksha-platform:mainfrom
Hardik-hi:fix/announcements-swagger-ui
Open

fix: swagger tag added, additionalTags null fix#116
Hardik-hi wants to merge 1 commit intoshiksha-platform:mainfrom
Hardik-hi:fix/announcements-swagger-ui

Conversation

@Hardik-hi
Copy link
Copy Markdown
Contributor

@Hardik-hi Hardik-hi commented Aug 5, 2022

Changes

  1. Added Swagger API tag for announcements APIs

    Issue: Announcements tag not visible in swagger ui, API descriptions nested under default tag (https://sandbox.shikshaplatform.io/api/swagger-docs)

    Expected: Tag should be visible like other modules

    Fix: Added @ApiTags("Announcements") in Announcement Controller, UI now looks as follows:

image

  1. Bugfix for additionalTags

    Bug: When additionalTags is undefined during creation of announcement, value of additional_tags being set as ["undefined"] in DB

    Expected: Value in DB should be set as NULL

    Fix: removed template literals to send empty array in case of undefined value to DB

CC: @Shruti3004 @coolbung

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant