Skip to content

Commit

Permalink
group/org validator use default type
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Mar 4, 2021
1 parent 540bce0 commit a8f86cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/scheming/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def setup_template_variables(self, context, data_dict):

def validate(self, context, data_dict, schema, action):
thing, action_type = action.split('_')
t = data_dict.get('type')
t = data_dict.get('type', self.UNSPECIFIED_GROUP_TYPE)
if not t or t not in self._schemas:
return data_dict, {'type': "Unsupported {thing} type: {t}".format(
thing=thing, t=t)}
Expand Down

0 comments on commit a8f86cd

Please sign in to comment.