Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes #37 - make field technologies as list of strings
  • Loading branch information
Angeluz-07 committed Mar 23, 2020
commit 379074bd089eefd671e44ad9f1de65b710138a8b
17 changes: 12 additions & 5 deletions time_tracker_api/time_entries/time_entries_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@
description='The id of the selected activity',
example=faker.random_int(1, 9999),
),
'technologies': fields.String(
required=True,
title='Technologies',
max_length=64,
description='Canonical names of the used technologies during this period',
'technologies': fields.List(
fields.String(
required=True,
title='Technologies',
max_length=64,
description='Canonical names of the used technologies during this period',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this description more clear for you?

Technology names used in this time-entry

),
example=faker.words(
3,
['Java', 'Elixir', 'Python', 'Docker'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that as canonical names they should be in lowercase, as commented by @enriquezrene in this ticket.

unique=True
)
),
'description': fields.String(
title='Comments',
Expand Down