Skip to content

Commit 19e94bc

Browse files
author
EliuX
committed
fix: Close #111 Set non required strings fields to NullableString
1 parent 5bee71f commit 19e94bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

time_tracker_api/time_entries/time_entries_namespace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from commons.data_access_layer.cosmos_db import current_datetime, datetime_str, current_datetime_str
88
from commons.data_access_layer.database import COMMENTS_MAX_LENGTH
9-
from time_tracker_api.api import common_fields, create_attributes_filter, api, UUID
9+
from time_tracker_api.api import common_fields, create_attributes_filter, api, UUID, NullableString
1010
from time_tracker_api.time_entries.time_entries_model import create_dao
1111

1212
faker = Faker()
@@ -48,7 +48,7 @@
4848
description='When the user ended doing this activity',
4949
example=current_datetime_str(),
5050
),
51-
'uri': fields.String(
51+
'uri': NullableString(
5252
title='Uniform Resource identifier',
5353
description='Either identifier or locator of a resource in the Internet that helps to understand'
5454
' what this time entry was about. For example, A Jira ticket, a Github issue, a Google document.',

0 commit comments

Comments
 (0)