Skip to content

Commit

Permalink
Add did into Parent/FileRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jun 1, 2024
1 parent 50be1bb commit 6dbc2df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbs/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type Files struct {

// FileRecord represents input file record from HTTP request
type FileRecord struct {
File string `json:"file" validate:"required"`
Dataset string `json:"dataset" validate:"required"`
File string `json:"file" validate:"required"`
Did string `json:"did" validate:"required"`
}

// Files DBS API
Expand Down
1 change: 1 addition & 0 deletions dbs/parents.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type Parents struct {
// ParentRecord represents input parent record from HTTP request
type ParentRecord struct {
Parent string `json:"parent" validate:"required"`
Did string `json:"did" validate:"required"`
}

// Parents DBS API
Expand Down

0 comments on commit 6dbc2df

Please sign in to comment.