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: build-tests/heft-json-schema-typings-plugin-test/src/test/__snapshots__/JsonSchemaTypingsGenerator.test.ts.snap
+76Lines changed: 76 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,44 @@ export interface Type2 {
54
54
",
55
55
"./test-schema-draft-07.schema.json.d.ts": "// This file was generated by a tool. Modifying it will produce unexpected behavior
56
56
57
+
exportinterfaceTestSchemaFile {
58
+
exampleString:string;
59
+
exampleLink?:string;
60
+
exampleArray:string[];
61
+
/**
62
+
* Description for exampleOneOf - this is a very long description to show in an error message
63
+
*/
64
+
exampleOneOf?:Type1|Type2;
65
+
exampleUniqueObjectArray?: {
66
+
field2?:string;
67
+
field3?:string;
68
+
}[];
69
+
}
70
+
/**
71
+
* Description for type1
72
+
*/
73
+
exportinterfaceType1 {
74
+
/**
75
+
* Description for field1
76
+
*/
77
+
field1:string;
78
+
}
79
+
/**
80
+
* Description for type2
81
+
*/
82
+
exportinterfaceType2 {
83
+
/**
84
+
* Description for field2
85
+
*/
86
+
field2:string;
87
+
/**
88
+
* Description for field3
89
+
*/
90
+
field3:string;
91
+
}
92
+
",
93
+
"./test-schema-draft-2019-09.schema.json.d.ts": "// This file was generated by a tool. Modifying it will produce unexpected behavior
94
+
57
95
exportinterfaceTestSchemaFile {
58
96
exampleString:string;
59
97
exampleLink?:string;
@@ -238,6 +276,44 @@ field3: string
238
276
",
239
277
"./test-schema-draft-07.schema.json.d.ts": "// This file was generated by a tool. Modifying it will produce unexpected behavior
240
278
279
+
exportinterfaceTestSchemaFile {
280
+
exampleString:string
281
+
exampleLink?:string
282
+
exampleArray:string[]
283
+
/**
284
+
* Description for exampleOneOf - this is a very long description to show in an error message
285
+
*/
286
+
exampleOneOf?: (Type1|Type2)
287
+
exampleUniqueObjectArray?: {
288
+
field2?:string
289
+
field3?:string
290
+
}[]
291
+
}
292
+
/**
293
+
* Description for type1
294
+
*/
295
+
exportinterfaceType1 {
296
+
/**
297
+
* Description for field1
298
+
*/
299
+
field1:string
300
+
}
301
+
/**
302
+
* Description for type2
303
+
*/
304
+
exportinterfaceType2 {
305
+
/**
306
+
* Description for field2
307
+
*/
308
+
field2:string
309
+
/**
310
+
* Description for field3
311
+
*/
312
+
field3:string
313
+
}
314
+
",
315
+
"./test-schema-draft-2019-09.schema.json.d.ts": "// This file was generated by a tool. Modifying it will produce unexpected behavior
0 commit comments