diff --git a/internal/handlers/check.go b/internal/handlers/check.go index 54d2150..507e269 100644 --- a/internal/handlers/check.go +++ b/internal/handlers/check.go @@ -63,6 +63,7 @@ func CheckMyWork(w http.ResponseWriter, r *http.Request) { "Title", "Object Model", "Full Title", + "Resource Type", } uploadIds := map[string]bool{} for rowIndex, row := range csvData[1:] { diff --git a/internal/handlers/check_test.go b/internal/handlers/check_test.go index d31a191..6e0e385 100644 --- a/internal/handlers/check_test.go +++ b/internal/handlers/check_test.go @@ -94,6 +94,16 @@ func TestCheckMyWork(t *testing.T) { statusCode: http.StatusOK, response: `{"A2":"Missing value"}`, }, + { + name: "Missing resource type", + method: http.MethodPost, + body: [][]string{ + {"Title", "Object Model", "Full Title", "Resource Type"}, + {"foo", "bar", "foo", ""}, + }, + statusCode: http.StatusOK, + response: `{"D2":"Missing value"}`, + }, { name: "Missing model", method: http.MethodPost,