Skip to content

Commit ca9d682

Browse files
rebase master
1 parent f506531 commit ca9d682

File tree

3 files changed

+72
-75
lines changed

3 files changed

+72
-75
lines changed

src/cli.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
22

33
import { whiteBright } from 'cli-color'
4-
import { JSONSchema4 } from 'json-schema'
54
import minimist = require('minimist')
65
import { readFile, writeFile, existsSync } from 'mz/fs'
76
import * as _mkdirp from 'mkdirp'

test/__snapshots__/test/test.ts.md

Lines changed: 72 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,78 @@ Generated by [AVA](https://ava.li).
15391539
}␊
15401540
`
15411541

1542+
## files in (-i), files out (-o)
1543+
1544+
> Snapshot 1
1545+
1546+
`/* tslint:disable */␊
1547+
/**␊
1548+
* This file was automatically generated by json-schema-to-typescript.␊
1549+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
1550+
* and run json-schema-to-typescript to regenerate this file.␊
1551+
*/␊
1552+
1553+
export interface ASchema {␊
1554+
f: string;␊
1555+
g?: number;␊
1556+
}␊
1557+
`
1558+
1559+
> Snapshot 2
1560+
1561+
`/* tslint:disable */␊
1562+
/**␊
1563+
* This file was automatically generated by json-schema-to-typescript.␊
1564+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
1565+
* and run json-schema-to-typescript to regenerate this file.␊
1566+
*/␊
1567+
1568+
export interface BSchema {␊
1569+
x?: string;␊
1570+
y: number;␊
1571+
[k: string]: any;␊
1572+
}␊
1573+
`
1574+
1575+
## files in (-i), files out (-o) nested dir does not exist
1576+
1577+
> Snapshot 1
1578+
1579+
`/* tslint:disable */␊
1580+
/**␊
1581+
* This file was automatically generated by json-schema-to-typescript.␊
1582+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
1583+
* and run json-schema-to-typescript to regenerate this file.␊
1584+
*/␊
1585+
1586+
export interface ASchema {␊
1587+
f: string;␊
1588+
g?: number;␊
1589+
}␊
1590+
`
1591+
1592+
> Snapshot 2
1593+
1594+
`/* tslint:disable */␊
1595+
/**␊
1596+
* This file was automatically generated by json-schema-to-typescript.␊
1597+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
1598+
* and run json-schema-to-typescript to regenerate this file.␊
1599+
*/␊
1600+
1601+
export interface BSchema {␊
1602+
x?: string;␊
1603+
y: number;␊
1604+
[k: string]: any;␊
1605+
}␊
1606+
`
1607+
1608+
## files in (-i), pipe out
1609+
1610+
> Snapshot 1
1611+
1612+
''
1613+
15421614
## formatterOptions.js
15431615

15441616
> Snapshot 1
@@ -9425,77 +9497,3 @@ Generated by [AVA](https://ava.li).
94259497
[k: string]: any;␊
94269498
}␊
94279499
`
9428-
9429-
## files in (-i), files out (-o)
9430-
9431-
> Snapshot 1
9432-
9433-
`/* tslint:disable */␊
9434-
/**␊
9435-
* This file was automatically generated by json-schema-to-typescript.␊
9436-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
9437-
* and run json-schema-to-typescript to regenerate this file.␊
9438-
*/␊
9439-
9440-
export interface ASchema {␊
9441-
f: string;␊
9442-
g?: number;␊
9443-
}␊
9444-
`
9445-
9446-
## files in (-i), files out (-o)
9447-
9448-
> Snapshot 2
9449-
9450-
`/* tslint:disable */␊
9451-
/**␊
9452-
* This file was automatically generated by json-schema-to-typescript.␊
9453-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
9454-
* and run json-schema-to-typescript to regenerate this file.␊
9455-
*/␊
9456-
9457-
export interface BSchema {␊
9458-
x?: string;␊
9459-
y: number;␊
9460-
[k: string]: any;␊
9461-
}␊
9462-
`
9463-
9464-
## files in (-i), files out (-o) nested dir does not exist
9465-
9466-
> Snapshot 1
9467-
9468-
`/* tslint:disable */␊
9469-
/**␊
9470-
* This file was automatically generated by json-schema-to-typescript.␊
9471-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
9472-
* and run json-schema-to-typescript to regenerate this file.␊
9473-
*/␊
9474-
9475-
export interface ASchema {␊
9476-
f: string;␊
9477-
g?: number;␊
9478-
}␊
9479-
`
9480-
9481-
> Snapshot 2
9482-
9483-
`/* tslint:disable */␊
9484-
/**␊
9485-
* This file was automatically generated by json-schema-to-typescript.␊
9486-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
9487-
* and run json-schema-to-typescript to regenerate this file.␊
9488-
*/␊
9489-
9490-
export interface BSchema {␊
9491-
x?: string;␊
9492-
y: number;␊
9493-
[k: string]: any;␊
9494-
}␊
9495-
`
9496-
9497-
## files in (-i), pipe out
9498-
9499-
> Snapshot 1
9500-
9501-
''

test/__snapshots__/test/test.ts.snap

1.22 KB
Binary file not shown.

0 commit comments

Comments
 (0)