Skip to content

Commit 1a59c0e

Browse files
committed
Bump to 0.1.25
1 parent 694688d commit 1a59c0e

File tree

7 files changed

+38
-37
lines changed

7 files changed

+38
-37
lines changed

docs/Annotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**id** | **int** | | [readonly]
9-
**observation_uuid** | **str** | UUID randomly generated on phone to identify each unique report version. Must be exactly 36 characters (32 hex digits plus 4 hyphens). | [readonly]
9+
**observation_uuid** | **str** | | [readonly]
1010
**user** | [**SimpleAnnotatorUser**](SimpleAnnotatorUser.md) | | [readonly]
1111
**best_photo** | [**SimplePhoto**](SimplePhoto.md) | | [readonly]
1212
**classification** | [**AnnotationClassification**](AnnotationClassification.md) | |

mosquito_alert/api/bites_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _create_serialize(
334334
@validate_call
335335
def destroy(
336336
self,
337-
uuid: StrictStr,
337+
uuid: UUID,
338338
_request_timeout: Union[
339339
None,
340340
Annotated[StrictFloat, Field(gt=0)],
@@ -403,7 +403,7 @@ def destroy(
403403
@validate_call
404404
def destroy_with_http_info(
405405
self,
406-
uuid: StrictStr,
406+
uuid: UUID,
407407
_request_timeout: Union[
408408
None,
409409
Annotated[StrictFloat, Field(gt=0)],
@@ -472,7 +472,7 @@ def destroy_with_http_info(
472472
@validate_call
473473
def destroy_without_preload_content(
474474
self,
475-
uuid: StrictStr,
475+
uuid: UUID,
476476
_request_timeout: Union[
477477
None,
478478
Annotated[StrictFloat, Field(gt=0)],
@@ -1669,7 +1669,7 @@ def _list_mine_serialize(
16691669
@validate_call
16701670
def retrieve(
16711671
self,
1672-
uuid: StrictStr,
1672+
uuid: UUID,
16731673
_request_timeout: Union[
16741674
None,
16751675
Annotated[StrictFloat, Field(gt=0)],
@@ -1737,7 +1737,7 @@ def retrieve(
17371737
@validate_call
17381738
def retrieve_with_http_info(
17391739
self,
1740-
uuid: StrictStr,
1740+
uuid: UUID,
17411741
_request_timeout: Union[
17421742
None,
17431743
Annotated[StrictFloat, Field(gt=0)],
@@ -1805,7 +1805,7 @@ def retrieve_with_http_info(
18051805
@validate_call
18061806
def retrieve_without_preload_content(
18071807
self,
1808-
uuid: StrictStr,
1808+
uuid: UUID,
18091809
_request_timeout: Union[
18101810
None,
18111811
Annotated[StrictFloat, Field(gt=0)],

mosquito_alert/api/breeding_sites_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def _create_serialize(
486486
@validate_call
487487
def destroy(
488488
self,
489-
uuid: StrictStr,
489+
uuid: UUID,
490490
_request_timeout: Union[
491491
None,
492492
Annotated[StrictFloat, Field(gt=0)],
@@ -555,7 +555,7 @@ def destroy(
555555
@validate_call
556556
def destroy_with_http_info(
557557
self,
558-
uuid: StrictStr,
558+
uuid: UUID,
559559
_request_timeout: Union[
560560
None,
561561
Annotated[StrictFloat, Field(gt=0)],
@@ -624,7 +624,7 @@ def destroy_with_http_info(
624624
@validate_call
625625
def destroy_without_preload_content(
626626
self,
627-
uuid: StrictStr,
627+
uuid: UUID,
628628
_request_timeout: Union[
629629
None,
630630
Annotated[StrictFloat, Field(gt=0)],
@@ -1855,7 +1855,7 @@ def _list_mine_serialize(
18551855
@validate_call
18561856
def retrieve(
18571857
self,
1858-
uuid: StrictStr,
1858+
uuid: UUID,
18591859
_request_timeout: Union[
18601860
None,
18611861
Annotated[StrictFloat, Field(gt=0)],
@@ -1923,7 +1923,7 @@ def retrieve(
19231923
@validate_call
19241924
def retrieve_with_http_info(
19251925
self,
1926-
uuid: StrictStr,
1926+
uuid: UUID,
19271927
_request_timeout: Union[
19281928
None,
19291929
Annotated[StrictFloat, Field(gt=0)],
@@ -1991,7 +1991,7 @@ def retrieve_with_http_info(
19911991
@validate_call
19921992
def retrieve_without_preload_content(
19931993
self,
1994-
uuid: StrictStr,
1994+
uuid: UUID,
19951995
_request_timeout: Union[
19961996
None,
19971997
Annotated[StrictFloat, Field(gt=0)],

mosquito_alert/api/identification_tasks_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5386,7 +5386,7 @@ def _predictions_update_serialize(
53865386
@validate_call
53875387
def retrieve(
53885388
self,
5389-
observation_uuid: StrictStr,
5389+
observation_uuid: UUID,
53905390
_request_timeout: Union[
53915391
None,
53925392
Annotated[StrictFloat, Field(gt=0)],
@@ -5455,7 +5455,7 @@ def retrieve(
54555455
@validate_call
54565456
def retrieve_with_http_info(
54575457
self,
5458-
observation_uuid: StrictStr,
5458+
observation_uuid: UUID,
54595459
_request_timeout: Union[
54605460
None,
54615461
Annotated[StrictFloat, Field(gt=0)],
@@ -5524,7 +5524,7 @@ def retrieve_with_http_info(
55245524
@validate_call
55255525
def retrieve_without_preload_content(
55265526
self,
5527-
observation_uuid: StrictStr,
5527+
observation_uuid: UUID,
55285528
_request_timeout: Union[
55295529
None,
55305530
Annotated[StrictFloat, Field(gt=0)],
@@ -5655,7 +5655,7 @@ def _retrieve_serialize(
56555655
@validate_call
56565656
def review_create(
56575657
self,
5658-
observation_uuid: StrictStr,
5658+
observation_uuid: UUID,
56595659
meta_create_identification_task_review_request: Optional[MetaCreateIdentificationTaskReviewRequest] = None,
56605660
_request_timeout: Union[
56615661
None,
@@ -5729,7 +5729,7 @@ def review_create(
57295729
@validate_call
57305730
def review_create_with_http_info(
57315731
self,
5732-
observation_uuid: StrictStr,
5732+
observation_uuid: UUID,
57335733
meta_create_identification_task_review_request: Optional[MetaCreateIdentificationTaskReviewRequest] = None,
57345734
_request_timeout: Union[
57355735
None,
@@ -5803,7 +5803,7 @@ def review_create_with_http_info(
58035803
@validate_call
58045804
def review_create_without_preload_content(
58055805
self,
5806-
observation_uuid: StrictStr,
5806+
observation_uuid: UUID,
58075807
meta_create_identification_task_review_request: Optional[MetaCreateIdentificationTaskReviewRequest] = None,
58085808
_request_timeout: Union[
58095809
None,

mosquito_alert/api/observations_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def _create_serialize(
456456
@validate_call
457457
def destroy(
458458
self,
459-
uuid: StrictStr,
459+
uuid: UUID,
460460
_request_timeout: Union[
461461
None,
462462
Annotated[StrictFloat, Field(gt=0)],
@@ -525,7 +525,7 @@ def destroy(
525525
@validate_call
526526
def destroy_with_http_info(
527527
self,
528-
uuid: StrictStr,
528+
uuid: UUID,
529529
_request_timeout: Union[
530530
None,
531531
Annotated[StrictFloat, Field(gt=0)],
@@ -594,7 +594,7 @@ def destroy_with_http_info(
594594
@validate_call
595595
def destroy_without_preload_content(
596596
self,
597-
uuid: StrictStr,
597+
uuid: UUID,
598598
_request_timeout: Union[
599599
None,
600600
Annotated[StrictFloat, Field(gt=0)],
@@ -1861,7 +1861,7 @@ def _list_mine_serialize(
18611861
@validate_call
18621862
def retrieve(
18631863
self,
1864-
uuid: StrictStr,
1864+
uuid: UUID,
18651865
_request_timeout: Union[
18661866
None,
18671867
Annotated[StrictFloat, Field(gt=0)],
@@ -1929,7 +1929,7 @@ def retrieve(
19291929
@validate_call
19301930
def retrieve_with_http_info(
19311931
self,
1932-
uuid: StrictStr,
1932+
uuid: UUID,
19331933
_request_timeout: Union[
19341934
None,
19351935
Annotated[StrictFloat, Field(gt=0)],
@@ -1997,7 +1997,7 @@ def retrieve_with_http_info(
19971997
@validate_call
19981998
def retrieve_without_preload_content(
19991999
self,
2000-
uuid: StrictStr,
2000+
uuid: UUID,
20012001
_request_timeout: Union[
20022002
None,
20032003
Annotated[StrictFloat, Field(gt=0)],

mosquito_alert/api/users_api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from typing import Any, Dict, List, Optional, Tuple, Union
1818
from typing_extensions import Annotated
1919

20-
from pydantic import StrictStr
2120
from typing import Optional
21+
from uuid import UUID
2222
from mosquito_alert.models.patched_user_request import PatchedUserRequest
2323
from mosquito_alert.models.user import User
2424
from mosquito_alert.models.user_request import UserRequest
@@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None:
4444
@validate_call
4545
def partial_update(
4646
self,
47-
uuid: StrictStr,
47+
uuid: UUID,
4848
patched_user_request: Optional[PatchedUserRequest] = None,
4949
_request_timeout: Union[
5050
None,
@@ -118,7 +118,7 @@ def partial_update(
118118
@validate_call
119119
def partial_update_with_http_info(
120120
self,
121-
uuid: StrictStr,
121+
uuid: UUID,
122122
patched_user_request: Optional[PatchedUserRequest] = None,
123123
_request_timeout: Union[
124124
None,
@@ -192,7 +192,7 @@ def partial_update_with_http_info(
192192
@validate_call
193193
def partial_update_without_preload_content(
194194
self,
195-
uuid: StrictStr,
195+
uuid: UUID,
196196
patched_user_request: Optional[PatchedUserRequest] = None,
197197
_request_timeout: Union[
198198
None,
@@ -346,7 +346,7 @@ def _partial_update_serialize(
346346
@validate_call
347347
def retrieve(
348348
self,
349-
uuid: StrictStr,
349+
uuid: UUID,
350350
_request_timeout: Union[
351351
None,
352352
Annotated[StrictFloat, Field(gt=0)],
@@ -415,7 +415,7 @@ def retrieve(
415415
@validate_call
416416
def retrieve_with_http_info(
417417
self,
418-
uuid: StrictStr,
418+
uuid: UUID,
419419
_request_timeout: Union[
420420
None,
421421
Annotated[StrictFloat, Field(gt=0)],
@@ -484,7 +484,7 @@ def retrieve_with_http_info(
484484
@validate_call
485485
def retrieve_without_preload_content(
486486
self,
487-
uuid: StrictStr,
487+
uuid: UUID,
488488
_request_timeout: Union[
489489
None,
490490
Annotated[StrictFloat, Field(gt=0)],
@@ -872,7 +872,7 @@ def _retrieve_mine_serialize(
872872
@validate_call
873873
def update(
874874
self,
875-
uuid: StrictStr,
875+
uuid: UUID,
876876
user_request: Optional[UserRequest] = None,
877877
_request_timeout: Union[
878878
None,
@@ -946,7 +946,7 @@ def update(
946946
@validate_call
947947
def update_with_http_info(
948948
self,
949-
uuid: StrictStr,
949+
uuid: UUID,
950950
user_request: Optional[UserRequest] = None,
951951
_request_timeout: Union[
952952
None,
@@ -1020,7 +1020,7 @@ def update_with_http_info(
10201020
@validate_call
10211021
def update_without_preload_content(
10221022
self,
1023-
uuid: StrictStr,
1023+
uuid: UUID,
10241024
user_request: Optional[UserRequest] = None,
10251025
_request_timeout: Union[
10261026
None,

mosquito_alert/models/annotation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
import json
2020

2121
from datetime import datetime
22-
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
22+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr, field_validator
2323
from typing import Any, ClassVar, Dict, List, Optional
24+
from uuid import UUID
2425
from mosquito_alert.models.annotation_classification import AnnotationClassification
2526
from mosquito_alert.models.annotation_feedback import AnnotationFeedback
2627
from mosquito_alert.models.observation_flags import ObservationFlags
@@ -34,7 +35,7 @@ class Annotation(BaseModel):
3435
Annotation
3536
""" # noqa: E501
3637
id: StrictInt
37-
observation_uuid: StrictStr = Field(description="UUID randomly generated on phone to identify each unique report version. Must be exactly 36 characters (32 hex digits plus 4 hyphens).")
38+
observation_uuid: UUID
3839
user: SimpleAnnotatorUser
3940
best_photo: Optional[SimplePhoto]
4041
classification: Optional[AnnotationClassification]

0 commit comments

Comments
 (0)