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
All my backends are written spring boot. The spec files are generated dynamically and they don't have extensions, for example http://localhost:8088/doc/v2
So I have to download, rename and copy the spec file when I need to use the plugin, which is unproductive.
When I use the openapi generator maven plugin it works fine with extensionless remote specs, and since this plugin also uses openapi-generator-cli.jar, my suggestion is to change the plugin specific logic to detect the if the spec file is json or yaml to validate by the mime type instead of the extension.
Thanks
Steps to reproduce
explained above
Minimal openapi specification
not relevant
Annotation used
not relevant
Expected behavior
explained above
Logs
Screenshots
No response
Platform
Linux
Library version
6.1.0
Flutter version
3.27.2
Flutter channel
stable
Additional context
The text was updated successfully, but these errors were encountered:
The update that would be made is to use a HEAD request as a fallback when there is no extension. However, head is not always supported in all servers so it may not fix the issue for you.
Another thing you can look into is using a redirect serve the correct file or even an interceptor.
Description of the bug
Hi,
All my backends are written spring boot. The spec files are generated dynamically and they don't have extensions, for example http://localhost:8088/doc/v2
So I have to download, rename and copy the spec file when I need to use the plugin, which is unproductive.
When I use the openapi generator maven plugin it works fine with extensionless remote specs, and since this plugin also uses openapi-generator-cli.jar, my suggestion is to change the plugin specific logic to detect the if the spec file is json or yaml to validate by the mime type instead of the extension.
Thanks
Steps to reproduce
explained above
Minimal openapi specification
not relevant
Annotation used
not relevant
Expected behavior
explained above
Logs
Screenshots
No response
Platform
Linux
Library version
6.1.0
Flutter version
3.27.2
Flutter channel
stable
Additional context
The text was updated successfully, but these errors were encountered: