Skip to content

Commit 9d3c874

Browse files
committed
Added Swagger converter (route generator)
Added minimal schema support
1 parent 93e5f37 commit 9d3c874

File tree

9 files changed

+900
-59
lines changed

9 files changed

+900
-59
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
],
3232
"max-depth": [
3333
1,
34-
3
34+
6
3535
],
3636
"new-cap": 0,
3737
"no-extend-native": 2,

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
custom-api-handler
12
dist
23
node_modules
34
npm-debug.log

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# L³ Swagger converter
22

3-
Convert a Swagger/OpenAPI schema to a new [](https://github.com/lambda-lambda-lambda) application.
3+
Convert a Swagger/OpenAPI schema to a new [](https://github.com/lambda-lambda-lambda) application. :warning: Work In Progress :warning:
44

55
## Dependencies
66

index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
const {createApp} = require('./dist/convert');
4+
5+
//
6+
// Usage:
7+
// $ convert.js swagger.json ./outpath
8+
//
9+
const schema = process.argv[2];
10+
11+
if (schema) {
12+
createApp(schema, process.argv[3]);
13+
} else {
14+
console.error('Usage:\n $ convert.js swagger.json ./outpath');
15+
}

0 commit comments

Comments
 (0)