mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
19 lines
395 B
Go
19 lines
395 B
Go
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
package validator
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"miniflux.app/v2/internal/model"
|
||
|
)
|
||
|
|
||
|
func ValidateEnclosureUpdateRequest(request *model.EnclosureUpdateRequest) error {
|
||
|
if request.MediaProgression < 0 {
|
||
|
return fmt.Errorf(`media progression must an positive integer`)
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|