You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tree/__tests__/__snapshots__/tree.spec.ts.snap
+180Lines changed: 180 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,3 +78,183 @@ exports[`SchemaTree expanding $refs in allOf given very complex model with circu
78
78
└─ children
79
79
"
80
80
`;
81
+
82
+
exports[`SchemaTree tree correctness given anyOf combiner placed next to allOf given allOf merging disabled, should preserve both combiners 1`] =`
83
+
"├─ 0
84
+
│ └─ #
85
+
│ ├─ type: object
86
+
│ ├─ combiner: anyOf
87
+
│ └─ children
88
+
│ ├─ 0
89
+
│ │ └─ #/anyOf/0
90
+
│ │ ├─ type: object
91
+
│ │ └─ children
92
+
│ │ ├─ 0
93
+
│ │ │ └─ #/anyOf/0/properties/root
94
+
│ │ │ └─ type: boolean
95
+
│ │ ├─ 1
96
+
│ │ │ └─ #/anyOf/0/properties/group
97
+
│ │ │ └─ type: string
98
+
│ │ └─ 2
99
+
│ │ └─ #/anyOf/0/properties/expirationDate
100
+
│ │ └─ type: string
101
+
│ └─ 1
102
+
│ └─ #/anyOf/1
103
+
│ ├─ type: object
104
+
│ └─ children
105
+
│ ├─ 0
106
+
│ │ └─ #/anyOf/1/properties/supervisor
107
+
│ │ └─ type: string
108
+
│ └─ 1
109
+
│ └─ #/anyOf/1/properties/key
110
+
│ └─ type: string
111
+
└─ 1
112
+
└─ #
113
+
├─ type: object
114
+
├─ combiner: allOf
115
+
└─ children
116
+
└─ 0
117
+
└─ #/allOf/0
118
+
├─ type: object
119
+
└─ children
120
+
├─ 0
121
+
│ └─ #/allOf/0/properties/type
122
+
│ └─ type: string
123
+
└─ 1
124
+
└─ #/allOf/0/properties/enabled
125
+
└─ type: boolean
126
+
"
127
+
`;
128
+
129
+
exports[`SchemaTree tree correctness given anyOf combiner placed next to allOf given allOf merging enabled, should merge contents of allOf combiners 1`] =`
130
+
"└─ #
131
+
├─ type: object
132
+
├─ combiner: anyOf
133
+
└─ children
134
+
├─ 0
135
+
│ └─ #/anyOf/0
136
+
│ ├─ type: object
137
+
│ └─ children
138
+
│ ├─ 0
139
+
│ │ └─ #/anyOf/0/properties/type
140
+
│ │ └─ type: string
141
+
│ ├─ 1
142
+
│ │ └─ #/anyOf/0/properties/enabled
143
+
│ │ └─ type: boolean
144
+
│ ├─ 2
145
+
│ │ └─ #/anyOf/0/properties/root
146
+
│ │ └─ type: boolean
147
+
│ ├─ 3
148
+
│ │ └─ #/anyOf/0/properties/group
149
+
│ │ └─ type: string
150
+
│ └─ 4
151
+
│ └─ #/anyOf/0/properties/expirationDate
152
+
│ └─ type: string
153
+
└─ 1
154
+
└─ #/anyOf/1
155
+
├─ type: object
156
+
└─ children
157
+
├─ 0
158
+
│ └─ #/anyOf/1/properties/type
159
+
│ └─ type: string
160
+
├─ 1
161
+
│ └─ #/anyOf/1/properties/enabled
162
+
│ └─ type: boolean
163
+
├─ 2
164
+
│ └─ #/anyOf/1/properties/supervisor
165
+
│ └─ type: string
166
+
└─ 3
167
+
└─ #/anyOf/1/properties/key
168
+
└─ type: string
169
+
"
170
+
`;
171
+
172
+
exports[`SchemaTree tree correctness given oneOf combiner placed next to allOf given allOf merging disabled, should preserve both combiners 1`] =`
173
+
"├─ 0
174
+
│ └─ #
175
+
│ ├─ type: object
176
+
│ ├─ combiner: oneOf
177
+
│ └─ children
178
+
│ ├─ 0
179
+
│ │ └─ #/oneOf/0
180
+
│ │ ├─ type: object
181
+
│ │ └─ children
182
+
│ │ ├─ 0
183
+
│ │ │ └─ #/oneOf/0/properties/root
184
+
│ │ │ └─ type: boolean
185
+
│ │ ├─ 1
186
+
│ │ │ └─ #/oneOf/0/properties/group
187
+
│ │ │ └─ type: string
188
+
│ │ └─ 2
189
+
│ │ └─ #/oneOf/0/properties/expirationDate
190
+
│ │ └─ type: string
191
+
│ └─ 1
192
+
│ └─ #/oneOf/1
193
+
│ ├─ type: object
194
+
│ └─ children
195
+
│ ├─ 0
196
+
│ │ └─ #/oneOf/1/properties/supervisor
197
+
│ │ └─ type: string
198
+
│ └─ 1
199
+
│ └─ #/oneOf/1/properties/key
200
+
│ └─ type: string
201
+
└─ 1
202
+
└─ #
203
+
├─ type: object
204
+
├─ combiner: allOf
205
+
└─ children
206
+
└─ 0
207
+
└─ #/allOf/0
208
+
├─ type: object
209
+
└─ children
210
+
├─ 0
211
+
│ └─ #/allOf/0/properties/type
212
+
│ └─ type: string
213
+
└─ 1
214
+
└─ #/allOf/0/properties/enabled
215
+
└─ type: boolean
216
+
"
217
+
`;
218
+
219
+
exports[`SchemaTree tree correctness given oneOf combiner placed next to allOf given allOf merging enabled, should merge contents of allOf combiners 1`] =`
0 commit comments