Skip to content

Validate attestation against config #1041

@kriswest

Description

@kriswest

Describe the bug

The API currently validates attestations submitted against the definition of the attestation form submitted with the request:

const attestationComplete = questions?.every((question) => !!question.checked);

To ensure attestations are completed correctly, they should be validated against the requirements set in the configuration, rather than the copy submitted with the request.

Expected behaviour
If a request is submitted with an incomplete attestation (i.e. with an element missing, rather than just an element that's not checked).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions