forked from mtusi2026/mtusi2026lab3
105 lines
2.5 KiB
JSON
105 lines
2.5 KiB
JSON
{
|
|
"pass": true,
|
|
"cases": [
|
|
{
|
|
"method": "POST",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats?limit=",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats?cursor=",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats?limit",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats?cursor",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats?limit=1&limit=2",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats?cursor=&cursor=garbage",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?limit=",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?cursor=",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?limit",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?cursor",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?limit=1&limit=2",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?cursor=&cursor=garbage",
|
|
"status": 400
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"path": "/api/v1/chats",
|
|
"status": 400
|
|
}
|
|
],
|
|
"exact_json_field_names": true,
|
|
"invalid_body_has_no_message_or_key_side_effect": true,
|
|
"empty_and_duplicate_pagination_rejected": true,
|
|
"absent_and_boundary_limits_accepted": true
|
|
}
|