Skip to content

Commit

Permalink
[#1117] Move validation error grouping into its own function
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb authored and robredpath committed Jun 7, 2019
1 parent 41814fd commit de801b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cove_360/lib/threesixtygiving.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ def common_checks_360(context, upload_dir, json_data, schema_obj):
validation_errors_grouped['format'].append((error_json, values))
else:
validation_errors_grouped['other'].append((error_json, values))
return validation_errors_grouped


def common_checks_360(context, upload_dir, json_data, schema_obj):
schema_name = schema_obj.release_pkg_schema_name
common_checks = common_checks_context(upload_dir, json_data, schema_obj, schema_name, context)
cell_source_map = common_checks['cell_source_map']

context.update(common_checks['context'])
context.update({
Expand Down

0 comments on commit de801b2

Please sign in to comment.