Condition Primitives Related to Request Body

August 25, 2025 · View on GitHub

req_body_json_in(json_path, value_list, case_insensitive)

  • Meaning: Searches for the field specified by json_path in the JSON-formatted request body and checks if its value exactly matches any in value_list.
  • Parameters
ParameterDescription
json_pathString
The path to the JSON field in the request body
value_listString
List of values, separated by ‘|’
case_insensitiveBoolean
Whether to ignore case sensitivity
  • Example
req_body_json_in("model", "deepseek-r1|qwen-plus", true)