Skip to content

Commit 3dae85b

Browse files
committed
include input values in snapshot for a smooth review
1 parent 7dc0458 commit 3dae85b

File tree

39 files changed

+676
-55
lines changed

39 files changed

+676
-55
lines changed

tests/snapshots/test__from_fixtures@additional_properties__extend.json.snap

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/additional_properties/extend.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"additionalProperties": false
10+
},
11+
"rhs": {
12+
"additionalProperties": true
13+
}
14+
}
15+
diff:
616
[
717
Change {
818
path: ".<additionalProperties>",

tests/snapshots/test__from_fixtures@additional_properties__restrict.json.snap

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/additional_properties/restrict.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"additionalProperties": true
10+
},
11+
"rhs": {
12+
"additionalProperties": false
13+
}
14+
}
15+
diff:
616
[
717
Change {
818
path: ".<additionalProperties>",

tests/snapshots/test__from_fixtures@any_of__any_of_with_constraint_to_type_1.json.snap

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/any_of_with_constraint_to_type_1.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"anyOf": [
10+
{
11+
"minimum": 1,
12+
"type": "integer"
13+
}
14+
]
15+
},
16+
"rhs": {
17+
"type": [
18+
"integer",
19+
"string"
20+
]
21+
}
22+
}
23+
diff:
624
[
725
Change {
826
path: "",

tests/snapshots/test__from_fixtures@any_of__any_of_with_constraint_to_type_2.json.snap

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/any_of_with_constraint_to_type_2.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"anyOf": [
10+
{
11+
"minimum": 1,
12+
"type": "integer"
13+
},
14+
{
15+
"minimum": 2,
16+
"type": "integer"
17+
}
18+
]
19+
},
20+
"rhs": {
21+
"minimum": 1,
22+
"type": [
23+
"integer",
24+
"string"
25+
]
26+
}
27+
}
28+
diff:
629
[
730
Change {
831
path: "",
Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/order_change.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"anyOf": [
10+
{
11+
"type": "array"
12+
},
13+
{
14+
"type": "string"
15+
}
16+
]
17+
},
18+
"rhs": {
19+
"anyOf": [
20+
{
21+
"type": "string"
22+
},
23+
{
24+
"type": "array"
25+
}
26+
]
27+
}
28+
}
29+
diff:
630
[]
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/to_equivalent_type.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"anyOf": [
10+
{
11+
"type": "string"
12+
}
13+
]
14+
},
15+
"rhs": {
16+
"type": "string"
17+
}
18+
}
19+
diff:
620
[]

tests/snapshots/test__from_fixtures@any_of__to_less_strict_type.json.snap

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/to_less_strict_type.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"anyOf": [
10+
{
11+
"type": "integer"
12+
}
13+
]
14+
},
15+
"rhs": {
16+
"type": [
17+
"integer",
18+
"string"
19+
]
20+
}
21+
}
22+
diff:
623
[
724
Change {
825
path: "",

tests/snapshots/test__from_fixtures@any_of__to_more_strict_type.json.snap

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/to_more_strict_type.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"anyOf": [
10+
{
11+
"type": "integer"
12+
},
13+
{
14+
"type": "string"
15+
}
16+
]
17+
},
18+
"rhs": {
19+
"type": "string"
20+
}
21+
}
22+
diff:
623
[
724
Change {
825
path: "",

tests/snapshots/test__from_fixtures@any_of__type_to_any_of_within_array.json.snap

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,49 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/type_to_any_of_within_array.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"definitions": {
10+
"Hello": {
11+
"type": "number"
12+
}
13+
},
14+
"items": [
15+
{
16+
"const": "start_unmerge"
17+
},
18+
{
19+
"$ref": "#/definitions/Hello"
20+
}
21+
],
22+
"type": "array"
23+
},
24+
"rhs": {
25+
"definitions": {
26+
"Hello": {
27+
"anyOf": [
28+
{
29+
"minimum": 1.0,
30+
"type": "number"
31+
}
32+
]
33+
}
34+
},
35+
"items": [
36+
{
37+
"const": "start_unmerge"
38+
},
39+
{
40+
"$ref": "#/definitions/Hello"
41+
}
42+
],
43+
"type": "array"
44+
}
45+
}
46+
diff:
647
[
748
Change {
849
path: ".1",
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/type_to_equivalent_any_of.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"type": "integer"
10+
},
11+
"rhs": {
12+
"anyOf": [
13+
{
14+
"type": "integer"
15+
}
16+
]
17+
}
18+
}
19+
diff:
620
[]

tests/snapshots/test__from_fixtures@any_of__type_to_less_strict_any_of.json.snap

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/type_to_less_strict_any_of.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"minimum": 1.0,
10+
"type": "integer"
11+
},
12+
"rhs": {
13+
"anyOf": [
14+
{
15+
"type": "integer"
16+
}
17+
]
18+
}
19+
}
20+
diff:
621
[
722
Change {
823
path: "",

tests/snapshots/test__from_fixtures@any_of__type_to_more_strict_any_of.json.snap

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/any_of/type_to_more_strict_any_of.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"type": "integer"
10+
},
11+
"rhs": {
12+
"anyOf": [
13+
{
14+
"type": "integer"
15+
},
16+
{
17+
"type": "string"
18+
}
19+
]
20+
}
21+
}
22+
diff:
623
[
724
Change {
825
path: "",

tests/snapshots/test__from_fixtures@properties__add.json.snap

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
---
22
source: tests/test.rs
3-
expression: diff
3+
expression: friendly_diff
44
input_file: tests/fixtures/properties/add.json
55
---
6+
values:
7+
{
8+
"lhs": {
9+
"properties": {
10+
"hello": {
11+
"type": "string"
12+
}
13+
},
14+
"type": "object"
15+
},
16+
"rhs": {
17+
"properties": {
18+
"hello": {
19+
"type": "string"
20+
},
21+
"world": {
22+
"type": "string"
23+
}
24+
},
25+
"type": "object"
26+
}
27+
}
28+
diff:
629
[
730
Change {
831
path: "",

0 commit comments

Comments
 (0)