the-bed-stack
the-bed-stack copied to clipboard
json.json instead of openapi.json
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
- [x] Read the Contributing Guidelines.
- [x] Check that there isn't already an issue that reports the same bug.
- [x] Check that this is a concrete bug. For Q&A, open a GitHub Discussion.
- [x] The provided reproduction is a minimal reproducible example of the bug.
I'll take a stab at it. Self assigning
After some digging it looks like a framework issue. I asked about it in https://github.com/elysiajs/elysia-swagger/issues/196
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"