Skip to content

Commit

Permalink
Remove requirement for identities and document_display in upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
masv3971 committed Aug 30, 2024
1 parent 3d60ea9 commit aa395fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/apigw/apiv1/handlers_datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit aa395fa

Please sign in to comment.