I'm getting the following exception when before everything was working fine:
500 : {"ClassName":"System.MissingMethodException","Message":"Method not found: \"System.Func21 apiDescriptions, SchemaRegistry schemaRegistry)\r\n bei System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)\r\n bei Swashbuckle.Swagger.SwaggerGenerator.GetSwagger(String rootUrl, String apiVersion)\r\n bei System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)\r\n bei AboServer.API.Config.SwaggerCachingProvider.GetSwagger(String rootUrl, String apiVersion)\r\n bei Swashbuckle.Application.SwaggerDocsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei AboServer.API.Handlers.SessionHandler.<SendAsync>d__1.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\n<CreateDictionarySchema>b__14\nSwashbuckle.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd1bb07a5ac7c7bc\nSwashbuckle.Swagger.SchemaRegistry+<>c__DisplayClass18\nSystem.String <CreateDictionarySchema>b__14(System.String)","HResult":-2146233069,"Source":"Swashbuckle.Core","WatsonBuckets":null,"MMClassName":null,"MMMemberName":null,"MMSignature":null} http://myserver:80/myapp/swagger/docs/v1
Set Newtonsoft.Json package to version 9.0.1 and the error will go. Just a temp fix for now.
also dealt with same issue after updating Newtonsoft to 10.x.x, since they removed Obsolete PropertyNameResolver
and also reverted Newtonsoft back for now
I know that the focus is on the .Net core version of Swashbuckle but is there any possibility to correct this? It is really critical for me and probably for a lot of more people since I can't revert to version 9 of Newtonsoft.
I've added a pull request for fixing this issue: #1063
Great! But I think it's #1062 I'm looking for. Is it possible to have a release of this?
Possible? sure it is!
When? that is the real question, seem that the pull request are piling up...
...And we have a call out for maintainers #1053
this is reaallly becoming more and more of a problem as time goes.. reverting to v9 is starting to look impossible here now.
@eatfrog
Come on man, you know how it is...
We all have full time jobs, this is a hobby for us, no SLA or dedicated support team.
Until we can turn this project into something like: https://www.mashery.com/api/products and start getting thousand$ flowing in, I think development/release will be slow.
But if you want to contribute your time, answer the call for maintainers: #1053
Hi!
Now that the fix have been merged, do you have any plan to release a new version? Obviously, an ETA would be great! Thanks for your good work!
Sorry for the +1 post, but really hoping this gets some visibility. We depend on Swashbuckle and this bug is causing major problems.
I'm working on my own fork that uses the latest and greatest, anyone intrested can get from:
https://www.myget.org/gallery/swashbuckle
And here is a demo:
http://swashbuckletest.azurewebsites.net/swagger
@lakario - if you hang tight I'll try push out a new release this evening
@heldersepu - any chance you could use a different name for your myget package? It's going to be confusing to have different packages with the same name. Plus it means you can publish yours to Nuget also.
@domaindrivendev
Yes I've been thinking about renaming the package/project.
Will probably do it next week
It would make things clearer..
@cryo75, @lakario - just pushed v5.6.0 to Nuget which should have the fix for this issue. Please check it out and let me know
@domaindrivendev Just tested 5.6.0, looks good. Thanks!
Most helpful comment
Hi!
Now that the fix have been merged, do you have any plan to release a new version? Obviously, an ETA would be great! Thanks for your good work!