Closed marticrespi closed 8 years ago
We have a breaking change in NJsonSchema v5.14, if just fixed that with v5.15 (readded method and made obsolete)... I think because you restored the packages, the newest NJS version got installed and not the version NSwag was compiled against. Just run dotnet restore --no-cache
and check that NJS v5.15 is used... then the problem should be solved. In the next NSwag version, we will use the latest NJS version and everything is still fine...
Perfect rsuter, all is working fine now!
Thanks!
Hi,
Without change any in the code, only I have updated two packages, it shows me this error (subject) in he ui.
If I try to get swagger.json at http://localhost:28604/swagger/v1/swagger.json and I can see a missingMethodException (Not found)
System.MissingMethodException: Method not found: 'System.String NJsonSchema.Infrastructure.XmlDocumentationExtensions.GetXmlDocumentation(System.Reflection.MemberInfo)'. at NSwag.CodeGeneration.SwaggerGenerators.WebApi.WebApiToSwaggerGenerator.LoadMetaData(SwaggerOperation operation, MethodInfo method) at NSwag.CodeGeneration.SwaggerGenerators.WebApi.WebApiToSwaggerGenerator.GenerateForController(SwaggerService service, Type controllerType, ISchemaResolver schemaResolver, SwaggerGenerator swaggerGenerator) in C:\projects\nswag\src\NSwag.CodeGeneration\SwaggerGenerators\WebApi\WebApiToSwaggerGenerator.cs:line 145 at NSwag.CodeGeneration.SwaggerGenerators.WebApi.WebApiToSwaggerGenerator.GenerateForControllers(IEnumerable1 controllerTypes) in C:\projects\nswag\src\NSwag.CodeGeneration\SwaggerGenerators\WebApi\WebApiToSwaggerGenerator.cs:line 90 at NSwag.AspNetCore.SwaggerMiddleware.GenerateSwagger(HttpContext context)
Here is my project.json
Thanks!