Skip to content

Commit

Permalink
Make 'validated' a boolean in the metadata record output dict
Browse files Browse the repository at this point in the history
Needs to be this way for JSON schema workflow validation. It's better this way, anyway.
  • Loading branch information
mark-saeon committed Aug 3, 2018
1 parent 2868d40 commit 5603c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/metadata/logic/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def metadata_record_show_schema():
'id': [v.convert_id_to_name('infrastructure')],
'__extras': [ignore],
},
'validated': [convert_from_extras],
'validated': [convert_from_extras, boolean_validator],
'errors': [convert_from_extras, v.deserialize_json],
'workflow_state_id': [convert_from_extras, default(None), v.convert_id_to_name('workflow_state')],
'private': [],
Expand Down

0 comments on commit 5603c31

Please sign in to comment.