aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cover.go6
-rw-r--r--interior.go6
-rw-r--r--interior_test.go12
3 files changed, 12 insertions, 12 deletions
diff --git a/cover.go b/cover.go
index 8897a09..fd9b784 100644
--- a/cover.go
+++ b/cover.go
@@ -86,9 +86,9 @@ func (cd CoverDimensions) String() string {
// CoverValidation contains the validation status of a cover file.
type CoverValidation struct {
- Id uint `json:"id"`
- SrcUrl string `json:"source_url"`
- NPages uint `json:"page_count"`
+ Id uint `json:"id"`
+ SrcUrl string `json:"source_url"`
+ NPages uint `json:"page_count"`
Errors []string `json:"errors"`
Status CoverValidationStatus
}
diff --git a/interior.go b/interior.go
index e9d183b..7c16b0a 100644
--- a/interior.go
+++ b/interior.go
@@ -36,9 +36,9 @@ type validateInteriorBasicReq struct {
// InteriorValidation contains the validation status of an interior file.
type InteriorValidation struct {
- Id uint `json:"id"`
- SrcUrl string `json:"source_url"`
- NPages uint `json:"page_count"`
+ Id uint `json:"id"`
+ SrcUrl string `json:"source_url"`
+ NPages uint `json:"page_count"`
Errors []string `json:"errors"`
Status InteriorValidationStatus
ValidPkgIds []PkgId `json:"valid_pod_package_ids"`
diff --git a/interior_test.go b/interior_test.go
index 804e487..1e7ec7c 100644
--- a/interior_test.go
+++ b/interior_test.go
@@ -2,8 +2,8 @@ package lulu
import (
"context"
- "testing"
_ "embed"
+ "testing"
"github.com/stretchr/testify/require"
)
@@ -41,11 +41,11 @@ var interiorValidationRespJson string
func TestUnmarshalInteriorValidation(t *testing.T) {
t.Parallel()
val := InteriorValidation{
- Id: 1,
- SrcUrl: "https://www.dropbox.com/sh/p3zh22vzsaegiri/AACOUn3LFKsITDzylh13bQpsa/161025/thesis2.pdf?dl=1",
- NPages: 210,
- Errors: []string{"Book Size: The book size you selected does not match the page size in the file you uploaded."},
- Status: InteriorStatusValidating,
+ Id: 1,
+ SrcUrl: "https://www.dropbox.com/sh/p3zh22vzsaegiri/AACOUn3LFKsITDzylh13bQpsa/161025/thesis2.pdf?dl=1",
+ NPages: 210,
+ Errors: []string{"Book Size: The book size you selected does not match the page size in the file you uploaded."},
+ Status: InteriorStatusValidating,
ValidPkgIds: nil,
}
requireUnmarshalJsonEq(t, val, interiorValidationRespJson)