Skip to content

Conversation

@nifaliana
Copy link

Description

Removed the trailing slash from the servers.url field in the OpenAPI specification.
Previously, the base URL ended with /creg/, and the paths started with a /, which resulted in double slashes (//) in the generated URLs.
This change ensures that the final URLs are properly formed without redundant slashes.

Related Issue

N/A – This is a cleanup task to improve URL formatting consistency in the documentation.

Motivation and Context

The OpenAPI documentation currently builds URLs like:
http://ss2.egovstack.net/.../creg//event/new
This is due to a trailing slash in the servers.url and a leading slash in each path.
While it doesn’t always break functionality, it's not a clean or standard-compliant format.
This update improves clarity, avoids potential routing issues, and enhances the overall documentation quality.

How Has This Been Tested?

  • Validated in Swagger Editor — no errors or warnings.
  • Checked in Swagger UI — all endpoints load correctly.
  • Confirmed that URLs are now generated without double slashes.
  • Reviewed rendered paths to ensure consistency.

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