LuvDaSun / SkiffaGenerator

ISC License
3 stars 2 forks source link

One configuration argument per client operation #87

Closed elmerbulthuis closed 4 months ago

elmerbulthuis commented 4 months ago

This is always the last function argument. It should include the following configuration items

and maybe also

This argument may be omitted! Then a default configuration will be used.

credentials is an object itself. It might be a good idea to flatten this object in to the configuration object. So if we have a security requirement that is calles apiKey, then apiKey would be a configuration item in the configuration.

Later also

We can configure global middleware and local middleware this way.