Skip to content

Question created as free response on the frontend gets parsed as multiple choice on the backend #5230

@sentry-io

Description

@sentry-io

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Sentry Issue: STUDIO-HX2

ValidationError: 1 validation error for ResponseDeclaration
  Value error, Single cardinality cannot have multiple correct responses [type=value_error, input_value={'identifier': 'RESPONSE'...None, base_type=None)])}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/value_error
(9 additional frame(s) were not displayed)
...
  File "contentcuration/utils/publish.py", line 360, in recurse_nodes
    generator.create_exercise_archive()
  File "contentcuration/utils/assessment/base.py", line 393, in create_exercise_archive
    self.process_assessment_item(question)
  File "contentcuration/utils/assessment/base.py", line 344, in process_assessment_item
    filepath, file_content = self.create_assessment_item(assessment_item, context)
  File "contentcuration/utils/assessment/qti/archive.py", line 189, in create_assessment_item
    ) = self._create_text_entry_interaction_and_response(processed_data)
  File "contentcuration/utils/assessment/qti/archive.py", line 154, in _create_text_entry_interaction_and_response
    response_declaration = ResponseDeclaration(

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions