Skip to content

Commit 164a796

Browse files
committed
avoiding confusing description
1 parent ecdbc28 commit 164a796

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/com/webfuzzing/commons/faults/DefinedFaultCategory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public enum DefinedFaultCategory implements FaultCategory {
2626
" As such, although there is high chances that a 500 status code might point to the presence of a" +
2727
" software fault in the tested application, they still need to be manually checked due to possible 'false-positive'."),
2828

29-
SCHEMA_INVALID_RESPONSE(101, "Received A Response From API That Is Not Valid According To Its Schema",
30-
"returnsSchemaInvalidResponse",
29+
SCHEMA_INVALID_RESPONSE(101, "Received A Response From API With A Structure/Data That Is Not Matching Its Schema",
30+
"returnsMismatchResponseWithSchema",
3131
"A schema, like for example OpenAPI for REST, defines the structures not only of the inputs but" +
3232
" also the outputs of the API." +
3333
" If what returned by an API is not conforming to its schema, then it is a clear fault." +

src/main/resources/wfc/faults/fault_categories.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"label" : "F100:HTTP Status 500"
77
}, {
88
"code" : 101,
9-
"testCaseLabel" : "returnsSchemaInvalidResponse",
9+
"testCaseLabel" : "returnsMismatchResponseWithSchema",
1010
"fullDescription" : "A schema, like for example OpenAPI for REST, defines the structures not only of the inputs but also the outputs of the API. If what returned by an API is not conforming to its schema, then it is a clear fault. However, whether the fault is in the API (i.e., it does not conform to the schema) or in the schema itself (i.e., it is underspecified, or having mistakes) is something that cannot be known for sure without debugging the issue.",
11-
"descriptiveName" : "Received A Response From API That Is Not Valid According To Its Schema",
12-
"label" : "F101:Received A Response From API That Is Not Valid According To Its Schema"
11+
"descriptiveName" : "Received A Response From API With A Structure/Data That Is Not Matching Its Schema",
12+
"label" : "F101:Received A Response From API With A Structure/Data That Is Not Matching Its Schema"
1313
}, {
1414
"code" : 102,
1515
"testCaseLabel" : "successOnInvalidInputs",

0 commit comments

Comments
 (0)