From 1772dd806bbe27edc1d1e6016d697b141edc7d2b Mon Sep 17 00:00:00 2001 From: thanhtr Date: Thu, 2 Jul 2020 17:08:25 +0300 Subject: [PATCH] Require customerId --- .../maas-backend/customers/verification/initiate/request.ts | 3 +++ .../maas-backend/customers/verification/initiate/request.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/maas-schemas-ts/src/maas-backend/customers/verification/initiate/request.ts b/maas-schemas-ts/src/maas-backend/customers/verification/initiate/request.ts index dde4c0329..1deb614cd 100644 --- a/maas-schemas-ts/src/maas-backend/customers/verification/initiate/request.ts +++ b/maas-schemas-ts/src/maas-backend/customers/verification/initiate/request.ts @@ -46,6 +46,7 @@ export type Request = t.Branded< }; } & { identityId: Defined; + customerId: Defined; payload: Defined; headers: Defined; }, @@ -68,6 +69,7 @@ export const Request = t.brand( }), t.type({ identityId: Defined, + customerId: Defined, payload: Defined, headers: Defined, }), @@ -86,6 +88,7 @@ export const Request = t.brand( }; } & { identityId: Defined; + customerId: Defined; payload: Defined; headers: Defined; }, diff --git a/maas-schemas/schemas/maas-backend/customers/verification/initiate/request.json b/maas-schemas/schemas/maas-backend/customers/verification/initiate/request.json index 70248e8a9..93757fb19 100644 --- a/maas-schemas/schemas/maas-backend/customers/verification/initiate/request.json +++ b/maas-schemas/schemas/maas-backend/customers/verification/initiate/request.json @@ -22,6 +22,6 @@ "type": "object" } }, - "required": ["identityId", "payload", "headers"], + "required": ["identityId", "customerId", "payload", "headers"], "type": "object" }