File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/main/resources/wfc/schemas Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ properties:
51
51
# OPTIONAL
52
52
extra :
53
53
description : " Extra, optional coverage information, collected by different tools."
54
- type : array
54
+ type : [ array, "null"]
55
55
items :
56
56
$ref : " #/$defs/Coverage"
57
57
75
75
context :
76
76
description : " An optional context for the fault. The same fault type could be manifested in different ways, \
77
77
and we use this property to differentiate among them."
78
- type : string
78
+ type : [ string, "null"]
79
79
required : ["code"]
80
80
TestFilePath :
81
81
description : " A relative path used to unique locate a test suite file."
@@ -198,6 +198,6 @@ $defs:
198
198
minimum : 0
199
199
total :
200
200
description : " Optional number of all testing targets for this criterion. For some criteria, this number can be unknown."
201
- type : integer
201
+ type : [ integer, "null"]
202
202
minimum : 0
203
203
required : ["name","covered"]
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export interface WebFuzzingCommonsReport {
59
59
/**
60
60
* Extra, optional coverage information, collected by different tools.
61
61
*/
62
- extra ?: Coverage [ ] ;
62
+ extra ?: Coverage [ ] | null ;
63
63
[ k : string ] : unknown ;
64
64
}
65
65
export interface Faults {
@@ -96,7 +96,7 @@ export interface FaultCategoryId {
96
96
/**
97
97
* An optional context for the fault. The same fault type could be manifested in different ways, and we use this property to differentiate among them.
98
98
*/
99
- context ?: string ;
99
+ context ?: string | null ;
100
100
[ k : string ] : unknown ;
101
101
}
102
102
export interface RESTReport {
@@ -165,6 +165,6 @@ export interface CoverageCriterion {
165
165
/**
166
166
* Optional number of all testing targets for this criterion. For some criteria, this number can be unknown.
167
167
*/
168
- total ?: number ;
168
+ total ?: number | null ;
169
169
[ k : string ] : unknown ;
170
170
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const testCaseSchema = z.record(z.unknown()).and(
22
22
export const faultCategoryIdSchema = z . record ( z . unknown ( ) ) . and (
23
23
z . object ( {
24
24
code : z . number ( ) ,
25
- context : z . string ( ) . optional ( ) ,
25
+ context : z . string ( ) . optional ( ) . nullable ( ) ,
26
26
} ) ,
27
27
) ;
28
28
@@ -38,7 +38,7 @@ export const coverageCriterionSchema = z.record(z.unknown()).and(
38
38
z . object ( {
39
39
name : z . string ( ) ,
40
40
covered : z . number ( ) ,
41
- total : z . number ( ) . optional ( ) ,
41
+ total : z . number ( ) . optional ( ) . nullable ( ) ,
42
42
} ) ,
43
43
) ;
44
44
@@ -89,6 +89,6 @@ export const webFuzzingCommonsReportSchema = z.record(z.unknown()).and(
89
89
totalTests : z . number ( ) ,
90
90
testFilePaths : z . array ( testFilePathSchema ) ,
91
91
testCases : z . array ( testCaseSchema ) ,
92
- extra : z . array ( coverageSchema ) . optional ( ) ,
92
+ extra : z . array ( coverageSchema ) . optional ( ) . nullable ( ) ,
93
93
} ) ,
94
94
) ;
You can’t perform that action at this time.
0 commit comments