Ivan Golovko
08/09/2023, 6:36 PMbodyFileName
feature for response. What about to implement the same for request?
Maybe I didn't read the docs well?Oleg Nenashev
08/09/2023, 7:31 PMIvan Golovko
08/10/2023, 6:41 AMJsonFilePattern
from EqualToJsonPattern
.
"bodyPatterns": [
{
"jsonFileName": "my-dir/qwe.json",
"ignoreArrayOrder": true,
...
}
]
2. We can let exiting EqualToJsonPattern
choose its behavior according to declaration.
a) "equalToJson": "{}"
b) "equalToJson": "my-dir/qwe.json"
3. We can add a new field into EqualToJsonPattern
to select the source of equalToJson
value.
"bodyPatterns": [
{
"jsonFileName": "my-dir/qwe.json",
"source": "file/raw(default)",
...
}
]
All of cases requires FileSource
to be available for Pattern
or another block of code to modify raw equalToJson
value in case of file usage.
Any other ideas?Oleg Nenashev
08/28/2023, 9:59 AMIvan Golovko
08/28/2023, 10:33 AMOleg Nenashev
08/28/2023, 1:53 PM