Skip to content

Commit

Permalink
Made description and instructions fields optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-cohere committed Aug 13, 2024
1 parent 8412c85 commit e1388d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/transfer_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ type TransferRequest struct {
// name of destination database
Destination string `json:"destination" example:"kbase" doc:"destination database identifier"`
// a Markdown description of the transfer request
Description string `json:"description" example:"# title\n* type: assembly\n" doc:"Markdown task description"`
Description string `json:"description,omitempty" example:"# title\n* type: assembly\n" doc:"Markdown task description"`
// machine-readable instructions for processing a payload at the destination site
Instructions json.RawMessage `json:"instructions" doc:"JSON object containing machine-readable instructions for processing payload at destination"`
Instructions json.RawMessage `json:"instructions,omitempty" doc:"JSON object containing machine-readable instructions for processing payload at destination"`
}

// a response for a file transfer request (POST)
Expand Down

0 comments on commit e1388d7

Please sign in to comment.