diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-05-07 13:09:58 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-05-07 13:09:58 -0400 |
| commit | ace7694bad5752aa38fec3a13c071cf7b2bebfce (patch) | |
| tree | 2f391107b6aa7bce7b0a028aff8f7c5b32839852 /cover.go | |
| parent | b57f03381e4bccba2963cebabe51a9cf32bd96dd (diff) | |
| download | lulu-ace7694bad5752aa38fec3a13c071cf7b2bebfce.zip | |
implement GET /validate-cover
Diffstat (limited to 'cover.go')
| -rw-r--r-- | cover.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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"` |