the-bed-stack icon indicating copy to clipboard operation
the-bed-stack copied to clipboard

json.json instead of openapi.json

Open yamcodes opened this issue 9 months ago • 2 comments

Describe the bug

downloading the openapi results in a json.json file not an openapi.json file

Reproduction

run the repo and click download this api button

System Info

No response

Validations

yamcodes avatar Mar 17 '25 20:03 yamcodes

I'll take a stab at it. Self assigning

yamcodes avatar Mar 21 '25 14:03 yamcodes

After some digging it looks like a framework issue. I asked about it in https://github.com/elysiajs/elysia-swagger/issues/196

yamcodes avatar Mar 21 '25 15:03 yamcodes

In the recent @elysiajs/swagger update the file is downloaded as %lowercase(title)%.json (meaning, bedstack.json in our case)

while not ideal (it would be great to be able to fully customize this), it's out of scope as the real issue here was the confusion of "json.json"

yamcodes avatar Jun 07 '25 09:06 yamcodes