From aa395fab2f4214b1e4d89195f568148df3bd5508 Mon Sep 17 00:00:00 2001 From: masv3971 Date: Fri, 30 Aug 2024 22:21:37 +0200 Subject: [PATCH] Remove requirement for identities and document_display in upload. --- internal/apigw/apiv1/handlers_datastore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/apigw/apiv1/handlers_datastore.go b/internal/apigw/apiv1/handlers_datastore.go index 4db52eb7..0065810f 100644 --- a/internal/apigw/apiv1/handlers_datastore.go +++ b/internal/apigw/apiv1/handlers_datastore.go @@ -11,8 +11,8 @@ import ( // UploadRequest is the request for Upload type UploadRequest struct { Meta *model.MetaData `json:"meta" validate:"required"` - Identities []*model.Identity `json:"identities,omitempty" validate:"required"` - DocumentDisplay *model.DocumentDisplay `json:"document_display,omitempty" validate:"required"` + Identities []*model.Identity `json:"identities,omitempty"` + DocumentDisplay *model.DocumentDisplay `json:"document_display,omitempty"` DocumentData map[string]any `json:"document_data" validate:"required"` DocumentDataVersion string `json:"document_data_version,omitempty" validate:"required,semver"` }