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

Validation of context activities #324

Open
aemion-docebo opened this issue Dec 9, 2021 · 0 comments
Open

Validation of context activities #324

aemion-docebo opened this issue Dec 9, 2021 · 0 comments

Comments

@aemion-docebo
Copy link

aemion-docebo commented Dec 9, 2021

Hello,

As per the specification: https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md#requirements-11, the values in the contextActivities object (grouping, parent, etc...) can be a single Activity object or an array of Activity objects. From what I've seen, the library is only validating the array case making it non xAPI compliant.

Is it ok to change this behaviour to accept both cases? If yes, I can work on a Pull Request.

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