Closed andrewconnell closed 2 weeks ago
Thanks for letting us know. I'll check it out asap
I just tried reproing the issue you mentioned. The generated spec validates fine in https://apitools.dev/swagger-parser/online/:
But validation fails in https://www.panoptica.app/tools/api-spec. Unfortunately, beyond saying that the spec file is invalid, it doesn't tell what's wrong so it's hard to know what to fix.
I can repro the issue with TTK. I'll reach out to the team to see why it's rejecting the spec and will share an update as soon as I know more.
Got a short update: it seems that TTK is looking for application/json
while the generated spec includes encoding application/json; charset=utf-8
. I'm going to find out more if it's something that should be adjusted in Dev Proxy or in TTK. Stay tuned
Bug fixed in v0.19.1 available on Homebrew and shortly on winget
Description
The description document created using the OpenAPI spec generator plugin doesn't appear to create valid documents as it's using an invalid data type. The generated document doesn't pass multiple validators (such as this one and this one).
Expected behaviour
https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity/photos?api_key=DEMO_KEY&sol=1000&camera=MAST
Actual behaviour
When repeating the process above...
Steps to reproduce
Noted above in Expected behavior process
Dev Proxy Version
0.19.0
Operating system (environment)
macOS
Shell
zsh
Configuration file
Additional Info
No response