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

✨(models) add xAPI Profile model #415

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

SergioSim
Copy link
Collaborator

Purpose

We want to support xAPI profile validation in Ralph.

Proposal

@SergioSim SergioSim force-pushed the xapi-profile-validator branch 5 times, most recently from dc207cf to 25eeca9 Compare August 18, 2023 09:33
@quitterie-lcs quitterie-lcs added this to the 5.0 milestone Aug 18, 2023
Copy link
Contributor

@wilbrdt wilbrdt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alt text



class ProfilePattern(BaseModel):
"""Profile `patters` field.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Profile `patters` field.
"""Profile `pattern` field.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted! Thanks)

Attributes:
id (URI): A URI for the Pattern.
type (str): Equal to `Pattern`.
primary (bool): Only primary Patterns are checked for matching sequences of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we add a custom validator checking that if the pattern is primary, it must include a prefLabel and definition?

We want to support xapi profile validation in Ralph.
Therefore we implement the xAPI Profile model which should
follow the xAPI profiles structures specification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants