Skip to content

Commit

Permalink
remove conlist and use pydantic field min_length instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sherwoodf committed Jun 28, 2024
1 parent 3092ec9 commit 23826b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bia-shared-datamodels/src/bia_models/bia_data_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import semantic_models
from pydantic import BaseModel, Field, AnyUrl, conlist
from pydantic import BaseModel, Field, AnyUrl
from typing import List, Optional, Union
from uuid import UUID

Expand All @@ -26,7 +26,7 @@ class Study(
):
experimental_imaging_component: List[UUID] = Field()
annotation_component: List[UUID] = Field()
author: conlist(item_type=semantic_models.Contributor, min_length=1) = Field()
author: semantic_models.Contributor = Field(min_length=1)
description: str = Field()


Expand Down

0 comments on commit 23826b7

Please sign in to comment.