IncludeOperationsValidator

Validates the includeOperations configuration structure.

Expected format: Map<String, List<String>>

  • Key: Path string (e.g., "/users/{userId}") or "*" (wildcard for all paths)

  • Value: List of HTTP methods (e.g., "GET", "POST") or ["*"] (wildcard for all methods)

Example valid configurations:

// Target single operation
mapOf("/users/{userId}" to listOf("GET"))

// Target multiple methods on same path
mapOf("/users/{userId}" to listOf("GET", "DELETE"))

// Target multiple paths
mapOf(
"/users/{userId}" to listOf("GET"),
"/orders" to listOf("POST")
)

// All methods on specific path
mapOf("/users" to listOf("*"))

// Specific method on all paths
mapOf("*" to listOf("GET"))

// All operations (equivalent to empty/not set)
mapOf("*" to listOf("*"))

Functions

Link copied to clipboard
fun validate(config: Map<String, List<String>>?)

Validates the includeOperations configuration structure.