diff --git a/learningpath-api/src/main/scala/no/ndla/learningpathapi/validation/LearningPathValidator.scala b/learningpath-api/src/main/scala/no/ndla/learningpathapi/validation/LearningPathValidator.scala index 7d735501a..464b4e890 100644 --- a/learningpath-api/src/main/scala/no/ndla/learningpathapi/validation/LearningPathValidator.scala +++ b/learningpath-api/src/main/scala/no/ndla/learningpathapi/validation/LearningPathValidator.scala @@ -19,7 +19,7 @@ trait LearningPathValidator { this: LanguageValidator & TitleValidator & TextValidator => val learningPathValidator: LearningPathValidator - class LearningPathValidator(descriptionRequired: Boolean = true) { + class LearningPathValidator(descriptionRequired: Boolean = false) { private val MISSING_DESCRIPTION = "At least one description is required." diff --git a/learningpath-api/src/test/scala/no/ndla/learningpathapi/validation/LearningPathValidatorTest.scala b/learningpath-api/src/test/scala/no/ndla/learningpathapi/validation/LearningPathValidatorTest.scala index f0469e925..885ec68e9 100644 --- a/learningpath-api/src/test/scala/no/ndla/learningpathapi/validation/LearningPathValidatorTest.scala +++ b/learningpath-api/src/test/scala/no/ndla/learningpathapi/validation/LearningPathValidatorTest.scala @@ -102,15 +102,6 @@ class LearningPathValidatorTest extends UnitSuite with TestEnvironment { validationError.head.message should equal("The url to the coverPhoto must point to an image in NDLA Image API.") } - test("That validate returns error message when no descriptions are defined") { - validMock() - val errorMessages = - validator.validateLearningPath(ValidLearningPath.copy(description = List()), allowUnknownLanguage = false) - errorMessages.size should be(1) - errorMessages.head.field should equal("description") - errorMessages.head.message should equal("At least one description is required.") - } - test( "That validate does not return error message when no descriptions are defined and no descriptions are required" ) {