-
Notifications
You must be signed in to change notification settings - Fork 30
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 Name and Property Tuple Extend #372
Conversation
For Section and Property.
For xml, json and yaml.
Change to more robust way to access file location and use file from within test dir. Otherwise might not be found during local testing.
Because dtype always inferred as string.
Because dtype always inferred as string.
Checks for Code Quality:
|
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.
Very nice PR, thanks a lot!
Good catch with the append
usage in the Property.extend
tests!
:param obj: odml.Section or odml.Property. | ||
""" | ||
if obj.name == obj.id: | ||
yield ValidationError(obj, 'Name should be readable', LABEL_WARNING) |
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.
Update the message to "Name should be human readable" to make it clearer whats expected of the user; but we can change this at a later point in time.
This PR