Skip to content

Conversation

@Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Dec 15, 2025

… 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 '')

… and there is no OperationId defined, print the path in the error instead
@Numpsy Numpsy marked this pull request as ready for review December 18, 2025 22:01
@sergey-tihon sergey-tihon merged commit ba87fcf into fsprojects:master Dec 22, 2025
1 check passed
@Numpsy Numpsy deleted the tweak_err branch December 22, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants