From ace7694bad5752aa38fec3a13c071cf7b2bebfce Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 7 May 2026 13:09:58 -0400 Subject: implement GET /validate-cover --- cover.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cover.go') diff --git a/cover.go b/cover.go index e5845a7..ba2bc2a 100644 --- a/cover.go +++ b/cover.go @@ -28,6 +28,14 @@ const ( CoverStatusError CoverValidationStatus = "ERROR" // file is invalid, list of errors is included in the response ) +func (s CoverValidationStatus) IsFinal() bool { + switch s { + case CoverStatusNormalized, CoverStatusError: + return true + } + return false +} + // coverDimensionsReq is the json body of a /cover-dimensions/ request. type coverDimensionsReq struct { PkgId PkgId `json:"pod_package_id"` -- cgit v1.2.3