Skip to content

Commit 3cba45e

Browse files
committed
regenerated types
1 parent 05244c7 commit 3cba45e

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

web-report/src/types/GeneratedTypes.tsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,36 +26,36 @@ export interface WebFuzzingCommonsReport {
2626
/**
2727
* The schema version of WFC needed to use to validate and process this document.
2828
*/
29-
schema_version: string;
29+
schemaVersion: string;
3030
/**
3131
* The name of the tool used to create the test cases reported in this document.
3232
*/
33-
tool_name: string;
33+
toolName: string;
3434
/**
3535
* The version number of the used tool, e.g., 1.0.0.
3636
*/
37-
tool_version: string;
37+
toolVersion: string;
3838
/**
3939
* The timestamp of when this report file was created.
4040
*/
41-
creation_time: string;
41+
creationTime: string;
4242
faults: Faults;
43-
problem_details: {
43+
problemDetails: {
4444
rest?: RESTReport;
4545
[k: string]: unknown;
4646
};
4747
/**
4848
* The total number of test cases generated by the tool.
4949
*/
50-
total_tests: number;
50+
totalTests: number;
5151
/**
5252
* The list of relative paths (compared to this document) of all the generated test suite files.
5353
*/
54-
test_file_paths: TestFilePath[];
54+
testFilePaths: TestFilePath[];
5555
/**
5656
* Information on each generated test case.
5757
*/
58-
test_cases: TestCase[];
58+
testCases: TestCase[];
5959
/**
6060
* Extra, optional coverage information, collected by different tools.
6161
*/
@@ -66,23 +66,23 @@ export interface Faults {
6666
/**
6767
* The total number of potential faults identified in the generated test suites. Each fault is uniquely identified with its 'code' category and 'context'. Note that different tests can detect the same fault, and a test case can detect several different faults.
6868
*/
69-
total_number: number;
69+
totalNumber: number;
7070
/**
7171
* Information on all the identified potential faults.
7272
*/
73-
found_faults: FoundFault[];
73+
foundFaults: FoundFault[];
7474
[k: string]: unknown;
7575
}
7676
/**
7777
* Data-structure to represent found faults, based on operations (e.g., HTTP endpoints in REST, and methods in GraphQL and RPC) and which tests find faults in them.
7878
*/
7979
export interface FoundFault {
80-
operation_id?: OperationId;
81-
test_case_id: TestCaseId;
80+
operationId?: OperationId;
81+
testCaseId: TestCaseId;
8282
/**
8383
* @minItems 1
8484
*/
85-
fault_categories: [FaultCategoryId, ...FaultCategoryId[]];
85+
faultCategories: [FaultCategoryId, ...FaultCategoryId[]];
8686
[k: string]: unknown;
8787
}
8888
/**
@@ -103,53 +103,53 @@ export interface RESTReport {
103103
/**
104104
* Total number of HTTP calls made in all the test cases. A test case could contain several HTTP calls, e.g., a POST followed by a GET and then a DELETE.
105105
*/
106-
total_http_calls: number;
106+
totalHttpCalls: number;
107107
/**
108108
* Unique ids of all the endpoints in the tested API.
109109
*/
110-
endpoint_ids: OperationId[];
110+
endpointIds: OperationId[];
111111
/**
112112
* List of which HTTP status codes were covered, based on endpoints.
113113
*/
114-
covered_http_status: CoveredEndpoint[];
114+
coveredHttpStatus: CoveredEndpoint[];
115115
[k: string]: unknown;
116116
}
117117
/**
118118
* Data-structure to represent which HTTP status code where covered on an endpoint by any of the generated tests.
119119
*/
120120
export interface CoveredEndpoint {
121-
endpoint_id: OperationId;
122-
test_case_id: TestCaseId;
121+
endpointId: OperationId;
122+
testCaseId: TestCaseId;
123123
/**
124124
* As in a test case the same endpoint could be called more than once, here we report all of the obtained HTTP status codes
125125
*
126126
* @minItems 1
127127
*/
128-
http_status: [HttpStatus, ...HttpStatus[]];
128+
httpStatus: [HttpStatus, ...HttpStatus[]];
129129
[k: string]: unknown;
130130
}
131131
export interface TestCase {
132132
id?: TestCaseId;
133-
file_path?: TestFilePath;
133+
filePath?: TestFilePath;
134134
/**
135135
* The name of the test case, as it appears in the generated test file.
136136
*/
137137
name?: string;
138138
/**
139139
* The line number in the generated test suite file where the code of this test case starts.
140140
*/
141-
start_line?: number;
141+
startLine?: number;
142142
/**
143143
* The line number in the generated test suite file where the code of this test case ends.
144144
*/
145-
end_line?: number;
145+
endLine?: number;
146146
[k: string]: unknown;
147147
}
148148
export interface Coverage {
149149
/**
150150
* The name of the tool used to collect and compute the coverage criteria.
151151
*/
152-
tool_name: string;
152+
toolName: string;
153153
criteria: CoverageCriterion[];
154154
[k: string]: unknown;
155155
}

0 commit comments

Comments
 (0)