File tree Expand file tree Collapse file tree 6 files changed +101
-97
lines changed
Expand file tree Collapse file tree 6 files changed +101
-97
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " http://json-schema.org/draft-07/schema#" ,
3+ "definitions" : {
4+ "address" : {
5+ "type" : " object" ,
6+ "properties" : {
7+ "street_address" : {
8+ "type" : " string"
9+ },
10+ "city" : {
11+ "type" : " string"
12+ },
13+ "state" : {
14+ "type" : " string"
15+ }
16+ },
17+ "required" : [
18+ " street_address" ,
19+ " city" ,
20+ " state"
21+ ]
22+ }
23+ },
24+ "type" : " object" ,
25+ "properties" : {
26+ "billing_address" : {
27+ "$ref" : " #/definitions/address"
28+ },
29+ "shipping_address" : {
30+ "$ref" : " #/definitions/address"
31+ }
32+ }
33+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " http://json-schema.org/draft-07/schema#" ,
3+ "definitions" : {
4+ "address" : {
5+ "type" : " object" ,
6+ "properties" : {
7+ "street_address" : {
8+ "type" : " string"
9+ },
10+ "city" : {
11+ "type" : " string"
12+ },
13+ "state" : {
14+ "type" : " string"
15+ }
16+ },
17+ "required" : [
18+ " street_address" ,
19+ " city" ,
20+ " state"
21+ ]
22+ }
23+ },
24+ "type" : " object" ,
25+ "properties" : {
26+ "billing_address" : {
27+ "type" : " object" ,
28+ "properties" : {
29+ "street_address" : {
30+ "type" : " string"
31+ },
32+ "city" : {
33+ "type" : " string"
34+ },
35+ "state" : {
36+ "type" : " string"
37+ }
38+ },
39+ "required" : [
40+ " street_address" ,
41+ " city" ,
42+ " state"
43+ ]
44+ },
45+ "shipping_address" : {
46+ "type" : " object" ,
47+ "properties" : {
48+ "street_address" : {
49+ "type" : " string"
50+ },
51+ "city" : {
52+ "type" : " string"
53+ },
54+ "state" : {
55+ "type" : " string"
56+ }
57+ },
58+ "required" : [
59+ " street_address" ,
60+ " city" ,
61+ " state"
62+ ]
63+ }
64+ }
65+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import 'jest-enzyme';
33import * as React from 'react' ;
44
55import { JSONSchema4 } from 'json-schema' ;
6- import { JsonSchemaViewerComponent , SchemaTree } from '../components' ;
7- import { isSchemaViewerEmpty } from '../utils/isSchemaViewerEmpty' ;
6+ import { JsonSchemaViewerComponent , SchemaTree } from '../../ components' ;
7+ import { isSchemaViewerEmpty } from '../../ utils/isSchemaViewerEmpty' ;
88
9- jest . mock ( '../utils/isSchemaViewerEmpty' ) ;
9+ jest . mock ( '../../ utils/isSchemaViewerEmpty' ) ;
1010
1111const schema : JSONSchema4 = {
1212 properties : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments