Closed junminahn closed 2 weeks ago
While trying to Approve the Delete Request (both Private and Public Cloud), form validation gives errors:
{ "success": false, "message": "Bad Request", "error": { "issues": [ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_literal", "expected": "DELETE", "path": [ "type" ], "message": "Invalid literal value, expected \"DELETE\"" }, { "expected": "'APPROVED' | 'REJECTED'", "received": "undefined", "code": "invalid_type", "path": [ "decision" ], "message": "Required" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "name" ], "message": "Required" }, { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "description" ], "message": "Required" }, { "expected": "'CLAB' | 'KLAB' | 'SILVER' | 'GOLD' | 'GOLDDR' | 'KLAB2' | 'EMERALD'", "received": "undefined", "code": "invalid_type", "path": [ "cluster" ], "message": "Required" }, { "expected": "'AEST' | 'AG' | 'AGRI' | 'ALC' | 'BCPC' | 'CITZ' | 'DBC' | 'EAO' | 'EDUC' | 'EMBC' | 'EMPR' | 'ENV' | 'FIN' | 'FLNR' | 'HLTH' | 'HOUS' | 'IRR' | 'JEDC' | 'LBR' | 'LDB' | 'MAH' | 'MCF' | 'MMHA' | 'PSA' | 'PSSG' | 'SDPR' | 'TCA' | 'TRAN'", "received": "undefined", "code": "invalid_type", "path": [ "ministry" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "projectOwner" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "primaryTechnicalLead" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "commonComponents" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "productionQuota" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "testQuota" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "toolsQuota" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "developmentQuota" ], "message": "Required" }, { "expected": "'CREATE' | 'EDIT' | 'DELETE'", "received": "undefined", "code": "invalid_type", "path": [ "type" ], "message": "Required" }, { "expected": "'APPROVED' | 'REJECTED'", "received": "undefined", "code": "invalid_type", "path": [ "decision" ], "message": "Required" } ], "name": "ZodError" } ], "path": [], "message": "Invalid input" } ], "name": "ZodError" } }
It is a thing that is not a NextJS problem, but is about modal changes: https://app.zenhub.com/workspaces/app-dev-team-646fdb4400ed8c0021aceeb4/issues/gh/bcgov/platform-services-registry/4055 So I close the task.
While trying to Approve the Delete Request (both Private and Public Cloud), form validation gives errors: