IgnoreConfigValidator

Validates ignore the configuration structure.

Expected format:

  • Path key → "*" : ignore all operations for this path

  • Path key → Map<String, "*"> : ignore specific HTTP method

  • Path 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 "*")
)

Functions

Link copied to clipboard
fun validateIgnoreConfig(input: Map<*, *>?)

Validates ignore the configuration structure and throw with details on the first failure.