Open italojs opened 2 years ago
I like the idea, but I think this could be a feature inside herbs2rest instead of a new library. What do you think?
I thought that too, but I think it could be used without herbs2rest, imagine the APIs that implements herbs but doenst use the herbs2rest yet, they can manually(or automatically) write the openAPISpecification so pass it to herbs2swagger, they dont need to do a big change into they projects to have a autogenerated swagger/sdk-client
Nice idea!
I would start by making it part of herbs2rest
in order to move fast, delivery value and, if it make sense, refactoring to split the glues in the future.
I think would be great if we could to use the herbs2rest metadata to generate a swagger page and a SDK-client for apis.
Following the @expresso router lib from @roziscoding, it receive a openAPIspecification and the swagger lib generates the documentation aaaaand the SDK-client. thinking in herbsjs, would be great if I give the route matadata for a usecase or routes so it generates a swagger endpoint into my Express app.
we could use it together herbs2rest like