我的邮递员环境变量“ date_format”的值为:
/^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2]\d|3[0-1])T([01]\d|2[0-3]):([0-5][0-9]):([0-9][0-9]).*/
我已经在“集合预请求”标签中定义了变量“ date_format”:
date_format = pm.environment.get('date_format');
我想在模式测试中使用该全局变量。我将以下架构保存在集合变量“ test_schema”中
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"lastUdpateDateTime": {
"type": "string",
"pattern": date_format
...
...