IgnoreConfigValidator
object IgnoreConfigValidator
Validates ignore the configuration structure.
Expected format:
Path key →
"*": ignore all operations for this pathPath key →
Map<String, "*">: ignore specific HTTP methodPath key →
Map<String, List<String>>: ignore specific test case names
Example valid configurations:
// Ignore entire path
mapOf("/api/users" to "*")
// Ignore specific method
mapOf("/api/users" to mapOf("DELETE" to "*"))
// Ignore specific test cases
mapOf(
"/api/users" to mapOf(
"GET" to listOf("Invalid parameter test", "Missing auth test")
)
)
// Wildcard path (applies to all paths)
mapOf(
"*" to mapOf("HEAD" to "*") // Ignore HEAD on all paths
)
// Complex nested structure
mapOf(
"/api/users" to mapOf(
"GET" to listOf("test1", "test2"),
"POST" to "*"
),
"/api/products" to "*",
"*" to mapOf("OPTIONS" to "*")
)Content copied to clipboard