Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible for this content item to create invalid xAPI statement #106

Open
rtibbles opened this issue Apr 9, 2021 · 0 comments
Open

Possible for this content item to create invalid xAPI statement #106

rtibbles opened this issue Apr 9, 2021 · 0 comments

Comments

@rtibbles
Copy link

rtibbles commented Apr 9, 2021

When using the example drag and drop activity: https://h5p.org/drag-and-drop - it seems to fairly consistently produce invalid xAPI statements.

For example this statement gets produced:

correctResponsesPattern: ["0[.]1"]
description: {en-US: "Drag and drop"}
extensions: {http://h5p.org/x-api/h5p-local-content-id: "45794c2b98973152711cd147fe1658a6"}
interactionType: "matching"
source: [
{id: "0", description: {…}},
{id: "1", description: {…}},
{id: "2", description: {…}},
]
target: [{id: "0", description: {…}}]
type: "http://adlnet.gov/expapi/activities/cmi.interaction"

Which has a correct responses pattern requiring 0 as a source and 1 as a target. However, an item with id 1 only appears in the sources array. An LRS that is enforcing the xAPI spec MAY reject this statement as per https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#response-patterns and https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#requirements-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant