Project

General

Profile

Actions

CR #803

closed
RA

Requirement #801: JCIC Mock Server:建立可驗證的專業測試基準

CR:補強身分證格式、未知路由與 JSON/XML 一致錯誤

CR #803: CR:補強身分證格式、未知路由與 JSON/XML 一致錯誤

Added by Redmine Admin 6 days ago.

Status:
Closed
Priority:
P1-High
Assignee:
-
Category:
Validation
Start date:
10/19/2026
Due date:
10/19/2026
% Done:

100%

Estimated time:
Story Points:

Description

目的

讓錯誤回應具備穩定契約,不再落回 Express 預設 HTML,並避免非法查詢條件進入資料層。

變更

  • id_number 驗證為 1 位英文字母加 9 位數字。
  • query_product 僅接受 A11、B05。
  • 查無資料與未知路由回 404/E404。
  • 空白 Body、JSON/XML 格式錯誤、非法欄位回 400/E400。
  • 無法辨識格式回 415/E415。
  • Body 超過 1MB 回 413/E413。
  • 所有錯誤依 Accept 回 JSON 或 XML。

驗證

  • 錯誤格式、未知路由、非法 ID、非法產品、413 與 415 均有測試。

No data to display

Actions

Also available in: PDF Atom