Generator3 needs SSL. OAS3.0 Client Generation Broken
See original GitHub issueQ&A (please complete the following information)
- OS: Ubuntu 18.04
- Browser: Chrome
- Version: 66.0.3359.181
- Method of installation: n/a
- Swagger-Editor version: whatver is currently at editor.swagger.io
- Swagger/OpenAPI version: OpenAPI 3.0
Example Swagger/OpenAPI definition: https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
Describe the bug you’re encountering
I just want to generate HTML client code for my OpenAPI 3.0 yaml. When I try it with the OAS3.0 petstore example (see above), it throws a mixed content error:
index.js:1 Mixed Content: The page at 'https://editor.swagger.io/' was loaded over HTTPS, but requested an insecure resource 'http://generator3.swagger.io/api/generator.json'. This request has been blocked; the content must be served over HTTPS.
To reproduce…
Steps to reproduce the behavior:
- Go to editor.swagger.io
- Paste in the OAS3.0 petstore code from https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
- Click generate client code in HTML
- See error
Expected behavior
HTML client gets downloaded for OAS3.0 stuff
Screenshots
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Customization - OpenAPI Generator
Custom Generator (and Template). If none of the built-in generators suit your needs and you need to do more than just modify the...
Read more >OpenAPI CodeGen Extensions - APIMatic Documentation
These extensions allow you to customize the APIMatic code generation engine as per your requirements. The following documentation discusses the extensions ...
Read more >SwaggerHub On-Premise Release Notes - SmartBear Support
The minimum required KOTS version is now 1.85.0. Customers who use an earlier version of KOTS must update the KOTS CLI and Admin...
Read more >F.A.Q - Springdoc-openapi
How can I disable/enable Swagger UI generation based on env variable? This property helps you disable only the UI. springdoc.swagger-ui.enabled= ...
Read more >How to use OpenAPI "oneOf" property with openapi-generator ...
OAS3.0 features support: anyOf, oneOf, callbacks, etc ... I using @openapitools/openapi-generator-cli and i tried this java snapshot ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@delmartechdude no problem! Glad to hear it.
We run releases weekly, so you should see this fixed on Swagger.io around this time of day on Friday.
In the meantime, using the Editor over HTTP should let you work around the issue!
@shockey Yeah…I mean I assume my definition is valid because I’m not getting errors or rendering problems in Swagger Editor. So I’ve opened an issue with the Codegen people (https://github.com/swagger-api/swagger-codegen/issues/8222)