swashbuckle.aspnetcore

FATAL: OperationId is required for all operations. Please add it for 'get' operation of path

余生长醉 提交于 2020-04-18 03:47:31
问题 I am using AutoRest to generate the client side of an api from swagger.json The output is AutoRest code generation utility [cli version: 3.0.6187; node: v10.16.3, max-memory: 8192 gb] (C) 2018 Microsoft Corporation. https://aka.ms/autorest NOTE: AutoRest core version selected from configuration: ~2.0.4413. Loading AutoRest core 'C:\Users\kirst\.autorest\@microsoft.azure_autorest-core@2.0.4417\node_modules\@microsoft.azure\autorest-core\dist' (2.0.4417) Loading AutoRest extension '@microsoft

FATAL: OperationId is required for all operations. Please add it for 'get' operation of path

末鹿安然 提交于 2020-04-18 03:47:27
问题 I am using AutoRest to generate the client side of an api from swagger.json The output is AutoRest code generation utility [cli version: 3.0.6187; node: v10.16.3, max-memory: 8192 gb] (C) 2018 Microsoft Corporation. https://aka.ms/autorest NOTE: AutoRest core version selected from configuration: ~2.0.4413. Loading AutoRest core 'C:\Users\kirst\.autorest\@microsoft.azure_autorest-core@2.0.4417\node_modules\@microsoft.azure\autorest-core\dist' (2.0.4417) Loading AutoRest extension '@microsoft

generating swagger.json with backwardly compatible enum using serializeAsV2

谁说胖子不能爱 提交于 2020-04-14 07:27:41
问题 This bounty has ended . Answers to this question are eligible for a +100 reputation bounty. Bounty grace period ends in 3 hours . Kirsten Greed wants to draw more attention to this question. Recently I upgraded my api from netcore2.1 to netcore3.1 I was hoping not to ask the api users to re-write their client. Thus I expect I need the swagger.json to be backwardly compatible. In the old swagger.json an enum would look like But now it looks like I am using Swashbuckle.AspNetCore 5.2.1 I have

Microsoft.OpenApi.Models.OpenApiDocument.SerializeAsV2 Invalid URI: The format of the URI could not be determined

一个人想着一个人 提交于 2020-03-25 18:23:11
问题 I am upgrading my api from .netcore2.1 to 3.1 The api uses SwagerUI and Autorest to generate the client. From this question about Autorest I found out that I need to use app.UseSwagger(c => { c.SerializeAsV2 = true; }); However the UI gives Fetch error Internal Server Error v1/swagger.json The json is { "StatusCode": 500, "ErrorMessage": "Internal server error: Invalid URI: The format of the URI could not be determined. nStack: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind