Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): add ability alter the paths definition received by swagger stats #1655

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

shubhamp-sf
Copy link
Contributor

Description

This PR introduced a callback in core config named modifyPathDefinition in order to allow users to modify or even exclude the path from swagger spec received by swagger-stats middleware.

GH-1613

Fixes #1613

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Intermediate change (work in progress)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • Performed a self-review of my own code
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Any dependent changes have been merged and published in downstream modules

@shubhamp-sf shubhamp-sf force-pushed the GH-1613 branch 3 times, most recently from c3c7760 to 85671f9 Compare August 22, 2023 12:00
@shubhamp-sf shubhamp-sf marked this pull request as ready for review August 22, 2023 12:28
…r stats middleware

introduced new callback `modifyPathDefinition` to achieve this

GH-1613
@sonarcloud
Copy link

sonarcloud bot commented Aug 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@shubhamp-sf shubhamp-sf merged commit d5c841e into master Aug 23, 2023
2 checks passed
@shubhamp-sf shubhamp-sf deleted the GH-1613 branch August 23, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants