Swashbuckle.AspNetCore не знает пользовательского метода http - PullRequest
0 голосов
/ 19 июня 2020

Я получил эту ошибку при генерации чванства. json

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "The given key 'SUBSCRIBE' was not present in the dictionary.",
  "elapse": "00:00:00.1503779",
  "traces": [
    "   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)",
    "   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)",
    "   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)",
    "   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath)",
    "   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)",
    "   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)",
    "   at CorrelationId.CorrelationIdMiddleware.Invoke(HttpContext context, ICorrelationContextFactory correlationContextFactory)",
    "   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_1.<<UseMiddlewareInterface>b__1>d.MoveNext()",
    "--- End of stack trace from previous location where exception was thrown ---",
    "   at MyErrorHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in MyErrorHandlingMiddleware.cs:line 52"
  ]
}

'SUBSCRIBE' - это настраиваемый HTTP-глагол

Пожалуйста, помогите мне

...