mock-server / mockserver

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).
http://mock-server.com
Apache License 2.0
4.61k stars 1.08k forks source link

Unable to generate client SDK in SwaggerHub 5.15.x-5.11.x #1700

Open scyantist opened 1 year ago

scyantist commented 1 year ago

Describe the issue Attempting to use Export > Client SDK > any language in SwaggerHub shows the following error. This is happening for versions 5.11.x through 5.15.x. Version 5.10.x works.

Screenshot 2023-03-13 at 2 57 51 PM

What you are trying to do Generate client SDK using official SwaggerHub definition

MockServer version 15.11.x-15.15.x

To Reproduce Steps to reproduce the issue:

  1. Go to https://app.swaggerhub.com/apis/jamesdbloom/mock-server-openapi/5.15.x
  2. Click Export > Client SDK > any language (I tried Python)
  3. What error you saw: Error.There was an error generating the clients python code. Please ensure that the definition and all external $refs (inc. domains) are valid. No client sdk is able to download

Expected behaviour zip containing client sdk should download without any error message.

MockServer Log Log output, as INFO level (or lower)

piyushsh commented 1 year ago

Same is the case with me, I can't generate it either.

I am trying to create a client for C# and it doesn't work.

Jztluo commented 1 year ago

want to generate python sdk too. have tried with openapi-generator swagger-codegen. didn't work