question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generator3 needs SSL. OAS3.0 Client Generation Broken

See original GitHub issue

Q&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:

  1. Go to editor.swagger.io
  2. Paste in the OAS3.0 petstore code from https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
  3. Click generate client code in HTML
  4. See error

Expected behavior

HTML client gets downloaded for OAS3.0 stuff

Screenshots

generateerror2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shockeycommented, May 22, 2018

@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!

1reaction
villasenorcommented, May 22, 2018

@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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found