Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accept "default" as "ok response" fallback #223

Merged
merged 5 commits into from
Apr 22, 2023

Conversation

jkone27
Copy link
Contributor

@jkone27 jkone27 commented Apr 21, 2023

tries to fix: #219.
@sergey-tihon

@sergey-tihon
Copy link
Member

would be also nice to add your schema to test schemas - https://github.com/fsprojects/SwaggerProvider/tree/master/tests/SwaggerProvider.ProviderTests/Schemas/v3

and add test like this https://github.com/fsprojects/SwaggerProvider/blob/master/tests/SwaggerProvider.ProviderTests/v3/Swagger.I0173.Tests.fs to check that TP works on this schema and manually check return type before merge/release

@jkone27
Copy link
Contributor Author

jkone27 commented Apr 21, 2023

added a sample and tests, thanks!

@jkone27
Copy link
Contributor Author

jkone27 commented Apr 22, 2023

Does it look good now?

@sergey-tihon
Copy link
Member

@jkone27 does it already work for you?

@jkone27
Copy link
Contributor Author

jkone27 commented Apr 22, 2023

thanks for patching my changes @sergey-tihon 🎸

@sergey-tihon sergey-tihon merged commit f1c7ef2 into fsprojects:master Apr 22, 2023
3 checks passed
@sergey-tihon
Copy link
Member

@jkone27 thank you for the fix, released in v2.0.0-beta8

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.

Wrong return type generated by provider, is unit, instead the openapi spec declares a default return type
2 participants