Skip to content

Criteria Class Validation #74

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

Merged
merged 6 commits into from
Apr 8, 2017
Merged

Criteria Class Validation #74

merged 6 commits into from
Apr 8, 2017

Conversation

ottonomy
Copy link
Collaborator

@ottonomy ottonomy commented Apr 7, 2017

Dependency #72 -- resolve that PR first to get a cleaner diff here, as this includes a couple of its commits to avoid more difficult parallel merge.

Adds CRITERIA_PROPERTY_DEPENDENCIES task to check that at least 1 of:

  • external URL id
  • criteria narrative
    exists for a BadgeClass's criteria.

ottonomy added 5 commits April 6, 2017 10:47
* feature/evidence-class:
  Add test to ensure node-level validation runs even when the node ID looks like an external URL.
  Resolves #49: Evidence class internal property checks.
…a task discovery in BadgeClass ClassValidators.
…id of unnecessary code duplication. Expand tests on optional and many properties for primitive and ID properties. Add additional tests for criteria validation.
@ottonomy ottonomy mentioned this pull request Apr 7, 2017
@ottonomy ottonomy mentioned this pull request Apr 7, 2017
@@ -211,7 +252,7 @@ def __init__(self, class_name):
# 'expected_class': OBClasses.VerificationObject, 'required': True},
{'prop_name': 'issuedOn', 'prop_type': ValueTypes.DATETIME, 'required': True},
{'prop_name': 'expires', 'prop_type': ValueTypes.DATETIME, 'required': False},
{'prop_name': 'image', 'prop_type': ValueTypes.URL, 'required': False}, # TODO: ValueTypes.DATA_URI_OR_URL
Copy link
Contributor

Choose a reason for hiding this comment

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

There may eventually be a merge conflict here, as in my recent PR #77 I switched this TODO to a test against ValueTypes.DATA_URI_OR_URL.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, trouble -- I'll do a manual merge when approved.

@ottonomy ottonomy merged commit 30468ee into develop Apr 8, 2017
@ottonomy ottonomy deleted the feature/criteria-class branch April 8, 2017 04:51
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

Successfully merging this pull request may close these issues.

2 participants