Open cilerler opened 1 year ago
Hi @cilerler thanks for this issue! From the json file you attached, you are using OpenAPI 3.0, but our generator does not officially support openAPI 3.0 yet. Could you try to convert your swagger to 2.0 and try again?
I appreciate your prompt response. Do you know when the generator will officially support OpenAPI 3.0? I tried using the API spec converter (https://lucybot-inc.github.io/api-spec-converter/) to convert the OpenAPI 3.0 specification to Swagger 2.0, but I haven't had any luck with it. Is there any other workaround or solution you would recommend?
May I know what's the specific reason you choose to use OA3? We do not have a plan to support OA3. We are investing TypeSpec as the replacement of OA2 in Azure API definition. Refer to https://aka.ms/TypeSpec/azuredoc. Currently, TypeSpec can generate OA2, and then supported by AutoRest.
@josefree I didn't make the choice to use OA3; it was a decision made by the third party whose API I'm interacting with. I simply retrieved their OA3 file so that I could generate a client for my own use.
I encountered an internal error while using AutoRest.CSharp with the following command:
autorest --input-file=".\3.0.0.json" --csharp --generation1-convenience-client --v3
Here is the file 3.0.0.json
I have appended
.txt
to the file in order to attach them to this issue.