remove course thematics validation
This commit is contained in:
@ -202,11 +202,6 @@ func (c *client) ListEducationalProducts(
|
||||
if !c.validLearningTypes.hasValue(params.LearningType) {
|
||||
return result, errors.NewValidationError("learning_type", "unknown value")
|
||||
}
|
||||
for _, ct := range params.CoursesThematics {
|
||||
if !c.validCourseThematics.hasValue(ct) {
|
||||
return result, errors.NewValidationError("courses_thematics", "unknown value "+ct)
|
||||
}
|
||||
}
|
||||
|
||||
reqParams := listEducationProductsRequest{
|
||||
LearningType: valueAsArray(params.LearningType),
|
||||
|
||||
Reference in New Issue
Block a user