-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
This library currently has two methods getSnippets and getEndpointSnippets, the latter of which depends on 4 arguments which must be provided in the right order. Adding additional arguments (e.g., as suggested in #62) would decrease usability, arguably.
I think that generally, the API of this library might be improved to become:
OpenAPISnippet.getSnippets(openApi, options)
..., where options may contain things like targets and path + method to select which operation to generate snippets for (instead of having a separate method getEndpointSnippets). This refactor would make it more feasible to add further options. E.g., w.r.t. #62 it could also contain a new serverIndex option to denote which server to use.
Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels