Skip to content

Commit

Permalink
fix wikidataId type
Browse files Browse the repository at this point in the history
  • Loading branch information
rababerladuseladim committed Nov 9, 2023
1 parent 714f9aa commit 4cb3418
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mex/common/models/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ class BaseOrganization(BaseModel):
),
]
] = []
wikidataId: str | None = Field(
None,
examples=["http://www.wikidata.org/entity/Q679041"],
pattern=r"^https://www\.wikidata\.org/entity/[PQ0-9]{2,64}$",
)
wikidataId: Annotated[
str,
Field(
examples=["http://www.wikidata.org/entity/Q679041"],
pattern=r"^https://www\.wikidata\.org/entity/[PQ0-9]{2,64}$",
),
] | None = None


class ExtractedOrganization(BaseOrganization, ExtractedData):
Expand Down

0 comments on commit 4cb3418

Please sign in to comment.