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_pathin the JSON-formatted request body and checks if its value exactly matches any invalue_list. - Parameters
| Parameter | Description |
|---|---|
| json_path | String The path to the JSON field in the request body |
| value_list | String List of values, separated by ‘|’ |
| case_insensitive | Boolean Whether to ignore case sensitivity |
- Example
req_body_json_in("model", "deepseek-r1|qwen-plus", true)