SwaggerProvider
SwaggerProvider copied to clipboard
When processing the body of a request with an unsupported media type,…
… and there is no OperationId defined, print the path in the error instead
refs #274
I'm not sure what the best format is here, but this changes the error message shown when building #276 from
G:\Dev\SwaggerProvider\tests\SwaggerProvider.ProviderTests\v3\Swashbuckle.ReturnControllers.Tests.fs(16,15): error FS3033: The type provider 'SwaggerProvider.OpenApiClientTypeProvider' reported an error: Operation '' does not contain supported media types ["text/plain"]
to
G:\Dev\SwaggerProvider\tests\SwaggerProvider.ProviderTests\v3\Swashbuckle.ReturnControllers.Tests.fs(16,15): error FS3033: The type provider 'SwaggerProvider.OpenApiClientTypeProvider' reported an error: Operation '/api/ConsumesText/Post' does not contain supported media types ["text/plain"]
(Operation '/api/ConsumesText/Post' rather than Operation '')