This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite js2dt converter + slight api change + fix integration tests
- Loading branch information
1 parent
b4e917d
commit 73a3eae
Showing
14 changed files
with
580 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
const program = require('commander') | ||
|
||
const cli = require('../src/dt2js_cli') | ||
|
||
program | ||
.arguments('<ramlFile> <ramlTypeName>') | ||
.description('Convert a RAML data type into JSON schema. ' + | ||
'Writes to standard output.') | ||
.action((f, t) => console.log(JSON.stringify(cli(f, t), null, 2))) | ||
|
||
program.parse(process.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
const program = require('commander') | ||
|
||
const cli = require('../src/js2dt_cli') | ||
|
||
program | ||
.arguments('<jsonFile> <ramlTypeName>') | ||
.description('Convert JSON schema to RAML Data Type. ' + | ||
'Writes to standard output.') | ||
.action((f, t) => console.log(cli(f, t))) | ||
|
||
program.parse(process.argv) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.