You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoints like api/ or even / are written to IR (and Fern definitions) without trailing slashes
To reproduce
Steps to reproduce the behavior:
Have an OpenAPI spec with at least 1 endpoint with a trailing slash
Run the command fern generate --docs (or any fern generate command that relies on an OpenAPI spec)
Inspect output (in my case resulting docs site)
Example OpenAPI Spec
openapi: 3.0.0info:
title: Sample Path Parsing APIversion: 1.0.0paths:
/example-without-trailing-slash:
get:
summary: Get Example/example-with-trailing-slash/:
get:
summary: Get Example with trailing
In this example both IR and the Fern def, and therefore client SDKs and docs will have /example-without-trailing-slash and /example-with-trailing-slash
Expected behavior
Trailing slashes should be preserved if they are in the OpenAPI spec
Screenshots
If applicable, add screenshots to help explain your problem.
CLI Version
0.22.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Endpoints like
api/
or even/
are written to IR (and Fern definitions) without trailing slashesTo reproduce
Steps to reproduce the behavior:
fern generate --docs
(or any fern generate command that relies on an OpenAPI spec)Example OpenAPI Spec
In this example both IR and the Fern def, and therefore client SDKs and docs will have
/example-without-trailing-slash
and/example-with-trailing-slash
Expected behavior
Trailing slashes should be preserved if they are in the OpenAPI spec
Screenshots
If applicable, add screenshots to help explain your problem.
CLI Version
0.22.0
The text was updated successfully, but these errors were encountered: