vernou / vernou.swashbuckle.httpresultsadapter Goto Github PK
View Code? Open in Web Editor NEWSwashbuckle adapter to generate Open Api responses to action that returns HttpResults type
License: MIT License
Swashbuckle adapter to generate Open Api responses to action that returns HttpResults type
License: MIT License
We need to initialize the solution with the projects :
Currently the Open Api Response Content Type is still "application/json".
But the API can have other content type response. This need to specify in the OAS.
The best is to get the information from API's metadata.
As a last resort, this will be done through configuration.
Minimal API endpoint has suitable metadatas and Open API Schema is correct.
So it do not need this filter fix.
The filter fix need to ignore minimal API endpoint.
The older tests relied on suppositions. But the more recent tests, which compare with "minimal api", are most relevant.
So we can delete the old ones.
The Open API Response description need to be as Swashbuckle generate it.
For example, Swashbuckle generate "Success" for the Open API Response description to 200 (OK).
The description come from Swashbuckle
by SwaggerGenerator
. As it is private, we have to copy it.
With minimal API, Swashbuckle generate the expected Open API response from HttpResults
types.
So we need a test that check Open API response from controller action with minimal API endpoint.
Hi,
many Controllers have async methods. this case is currently not addressed yet. It would be great if you could add support for this as well.
Many thanks for providing this - really needed (even though MS should provide this)
The test project was split because dotnet test
fail in GitHub Action where Task
is waited outside a test.
The solution is avoid to wait Task
.
We need to fix that and merge test projects.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.