mockserver icon indicating copy to clipboard operation
mockserver copied to clipboard

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

Open scyantist opened this issue 2 years ago • 2 comments
trafficstars

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)

scyantist avatar Mar 13 '23 22:03 scyantist

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.

piyushsh avatar Mar 27 '23 11:03 piyushsh

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

Jztluo avatar Jul 05 '23 03:07 Jztluo