Skip to content

Commit

Permalink
fix: maxScore can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
germanolleunlp committed Nov 9, 2023
1 parent a70a26f commit 2131101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/course-home/courseware-search/map-search-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Joi = require('joi');
const endpointSchema = Joi.object({
took: Joi.number(),
total: Joi.number(),
maxScore: Joi.number(),
maxScore: Joi.number().allow(null),
results: Joi.array().items(Joi.object({
id: Joi.string(),
contentType: Joi.string(),
Expand Down

0 comments on commit 2131101

Please sign in to comment.