3.1.1 • Published 4 years ago

@gasbuddy/configured-swaggerize-express v3.1.1

Weekly downloads
184
License
UNLICENSED
Repository
github
Last release
4 years ago

configured-swaggerize-express

Greenkeeper badge A small wrapper around swaggerize-express to allow runtime security handling and config-based instantiation. Please note that if you instantiate the module in configuration, you must resolve the promise that the factory function returns before passing to meddleware. For example:

config.json

{
  "meddleware": {
    "myService": {
      "module": {
        "factory": "require:@gasbuddy/configured-swaggerize-express",
        "arguments": [{
          "spec": "require:some-swagger-module"
        }]
      }
    }
  }
}

server.js

import * as configSwagger from '@gasbuddy/configured-swaggerize-express';

// Load confit first into a variable called config
app.use(meddleware(await configSwagger.resolveFactories(config.get('middleware')));
3.1.1

4 years ago

3.1.0

4 years ago

3.0.2

4 years ago

3.0.1

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.5.0

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago