Skip to content

Open API Feature removes leading slashes from paths entries #194

@scottpopplewell

Description

@scottpopplewell

Summary

Open API files typically have leading /s for paths keys. Do you have any more context on this commit which intentionally removes leading slashes from paths entries?

Current Behavior

Apexdocs removes the leading / from any path defined in @RestResource(urlMapping=.... Typically paths entries have a leading slash so that when appending with a servers entry, the resulting URL is a valid URL.

Expected Behavior

Apexdocs leaves the leading /.

Further Reading

Checkout this base Spectral rule which validates that paths have a leading / and documentation from SmartBear aka Swagger which describes creating paths with leading slashes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions