Skip to content

Commit

Permalink
Max 1 item on list
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Sep 27, 2024
1 parent cb5f01f commit 1cf2f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps_schema/attrs/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def initialize_values(self, data):

def json_schema(self):
schema = super().json_schema()
schema['properties']['items'] = {'type': 'array'}
schema['properties']['items'] = {'type': 'array', 'maxItems': 1}
schema['required'].append('items')
return schema

0 comments on commit 1cf2f75

Please sign in to comment.