HasAllMandatoryAnswers

Function: hasAllMandatoryAnswers()

[object Object]

Defined in: util/answer.util.ts:53

Checks whether every mandatory specification question that can still be answered has a non-empty answer. A mandatory question whose answer deadline has already passed is no longer required - it can no longer be filled in anyway.

Parameters

questions

GetSpecificationQuestionResponseDto[]

The specification questions to validate against.

activity

ActivityResponseDto

The activity the questions belong to.

answers

Record<number, string>

Current answers keyed by question id.

Returns

[object Object]

True if all still-answerable mandatory questions have been answered.

On this page