-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
BREAKING: create generic engine.OutputOpenAPISpec for use in all engines #302
base: main
Are you sure you want to change the base?
Conversation
72988f0
to
9248dff
Compare
Assuming this is acceptable. I believe really the decisions regarding how far we take this will be based on how far we want to take #260. |
3a65a37
to
19055e1
Compare
84ad214
to
49ae791
Compare
172ab14
to
7f199b4
Compare
7f199b4
to
bd92d9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR! We just need to de-embed the OpenAPIServerConfig field.
I thought 84ee2ff would come with a change on the struct to de-embed it really. Here you de-embedded the way the embedded struct is called. But maybe I'm missing something |
Maybe I'm just misunderstanding the ask. I assumed @EwenQuim just wanted it to be structured the way The ask was
|
178e1e9
to
12d3b26
Compare
5c02854
to
dabef5f
Compare
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Also create OpenAPIServerConfig for to hold properties pertaining to the UI serrving of the fuego net/http server.
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
dabef5f
to
95aff1d
Compare
This pulls out as much functionality as possible in regards to generating the assets when calling
engine.OutputOpenApiSpec
.This change is breaking in so far as the
OpenAPIConfig
will be composed ofEngineOpenAPIConfig
. I personally don't like these names but I want to ask about changing it here first. I would prefer that we changeOpenAPIConfig
toServerOpenAPIConfig
andEngineOpenAPIConfig
becomes theOpenAPIConfig
. The currentOpenAPIConfig
does have some uniqueness in regards to thefuego.Server
. We probably could consolidate nearly all of it though if in #260 we created an interface that dealt with route/url registration, but I'm not sure how far we want to take this. Or if someone can think of a better name forEngineOpenAPIConfig
.For instance every framework we bring in would need to be able to handle something like this to make it work