Clean up MVP output handling
This commit is contained in:
@@ -189,12 +189,8 @@ type OutputFile struct {
|
||||
}
|
||||
|
||||
type OutputResult struct {
|
||||
Files []OutputFile `json:"files,omitempty"`
|
||||
// Bytes is the legacy single-output payload. New encoders should return Files.
|
||||
Bytes []byte `json:"-"`
|
||||
// ContentType is the legacy single-output content type. New encoders should return Files.
|
||||
ContentType string `json:"content_type,omitempty"`
|
||||
Warnings []Warning `json:"warnings,omitempty"`
|
||||
Files []OutputFile `json:"files,omitempty"`
|
||||
Warnings []Warning `json:"warnings,omitempty"`
|
||||
}
|
||||
|
||||
type OutputEncoder interface {
|
||||
|
||||
Reference in New Issue
Block a user