aim-for-better

Results comments of aim-for-better

Hi @vidai-msft , our scenario is that in our cmdlet, we will call graph API to retriev azure ad user info based on the user's object id. Do you have...

> > ``` > > "pattern": "^(https?|abfss?):\\/\\/[^/]+(?:\\/|$)" > > ``` > > can use `"format": "uri"` > > Refers to: specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-11-01-preview/hdinsight.json:2953 in [f445bb4](https://github.com/Azure/azure-rest-api-specs/commit/f445bb4ad6904266e12322601e64b64d544dc60d). [](commit_id = [f445bb4](https://github.com/Azure/azure-rest-api-specs/commit/f445bb4ad6904266e12322601e64b64d544dc60d), deletion_comment = False) Thanks...

Can aspnetcore generate swagger without NSwag or other extra middleware?

> With the NSwag middleware, it's generated when requested and stays only in memory. > You can generate the swagger.json on your file system by using NSwag studio or the...

> The order is controlled with the newtonsoft attribute (Order): > https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.Core/OpenApiDocument.cs#L60 Yes, I also found it from source code, but how can I control this when i use this...

> postprocess the generated JSON and reorder. Thanks

> Make sure you are using the ASP.net core patterns corectly : https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-5.0#set-up-a-host > > NSwag only calls `CreateHostBuilder` and all your service configuration must happen inside (or within the...

Hi @jeremyVignelles My Program.cs is as bellow: ``` internal static class Program { private static void Main() { CreateNswagHost().Run(); } private static IWebHost CreateNswagHost() { return new WebHostBuilder() .ConfigureServices( services...

As you see, I have registered the service provider factory by running ` services => services.AddSingleton(new AutofacServiceProviderFactory())` But I still got the error when I build.