Skip to content

Commit 379074b

Browse files
committed
Fixes #37 - make field technologies as list of strings
1 parent 825caf9 commit 379074b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

time_tracker_api/time_entries/time_entries_namespace.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,18 @@
2323
description='The id of the selected activity',
2424
example=faker.random_int(1, 9999),
2525
),
26-
'technologies': fields.String(
27-
required=True,
28-
title='Technologies',
29-
max_length=64,
30-
description='Canonical names of the used technologies during this period',
26+
'technologies': fields.List(
27+
fields.String(
28+
required=True,
29+
title='Technologies',
30+
max_length=64,
31+
description='Canonical names of the used technologies during this period',
32+
),
33+
example=faker.words(
34+
3,
35+
['Java', 'Elixir', 'Python', 'Docker'],
36+
unique=True
37+
)
3138
),
3239
'description': fields.String(
3340
title='Comments',

0 commit comments

Comments
 (0)