-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: main
Are you sure you want to change the base?
Conversation
dc207cf
to
25eeca9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/ralph/models/xapi/profile.py
Outdated
|
||
|
||
class ProfilePattern(BaseModel): | ||
"""Profile `patters` field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Profile `patters` field. | |
"""Profile `pattern` field. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
?
25eeca9
to
ee493cc
Compare
We want to support xapi profile validation in Ralph. Therefore we implement the xAPI Profile model which should follow the xAPI profiles structures specification.
ee493cc
to
0c43770
Compare
Purpose
We want to support xAPI profile validation in Ralph.
Proposal