Skip to content

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?

@SergioSim SergioSim force-pushed the xapi-profile-validator branch from 25eeca9 to ee493cc Compare September 13, 2023 07:59
We want to support xapi profile validation in Ralph.
Therefore we implement the xAPI Profile model which should
follow the xAPI profiles structures specification.
@SergioSim SergioSim force-pushed the xapi-profile-validator branch from ee493cc to 0c43770 Compare September 13, 2023 08:04
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