Skip to content

Commit

Permalink
Update [GET] /tests/{testId}/questions/{questionNumber} response type
Browse files Browse the repository at this point in the history
  • Loading branch information
infhyroyage committed Jun 19, 2023
1 parent ccd81d3 commit 3a8886a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apim/apis-functions-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ paths:
type: boolean
isEscapedTranslation:
type: boolean
isCorrectedMulti:
isMultiplied:
type: boolean
"400":
description: 問題番号が不正です
Expand Down
2 changes: 1 addition & 1 deletion functions/question/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default async (context: Context): Promise<void> => {
result.escapeTranslatedIdxes.choices.includes(idx),
};
}),
isCorrectedMulti: result.correctIdxes.length > 1,
isMultiplied: result.correctIdxes.length > 1,
};
context.log.info({ body });

Expand Down
2 changes: 1 addition & 1 deletion types/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type GetHealthcheck = {
export type GetQuestion = {
subjects: Sentence[];
choices: Sentence[];
isCorrectedMulti: boolean;
isMultiplied: boolean;
};

export type GetQuestionAnswer = {
Expand Down

0 comments on commit 3a8886a

Please sign in to comment.