From cd93e9530c6288061f0c4375527790cbf6750e2c Mon Sep 17 00:00:00 2001 From: NextGenEng <58440325+THOR300@users.noreply.github.com> Date: Mon, 22 May 2023 16:54:46 +0100 Subject: [PATCH] Updating from AnyHttpUrl to str. (#51) Updating from AnyHttpUrl to str. Co-authored-by: Mark --- src/navigator_data_ingest/base/types.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/navigator_data_ingest/base/types.py b/src/navigator_data_ingest/base/types.py index f691f3e..ebb5f34 100644 --- a/src/navigator_data_ingest/base/types.py +++ b/src/navigator_data_ingest/base/types.py @@ -14,7 +14,7 @@ Callable, ) -from pydantic import AnyHttpUrl, BaseModel +from pydantic import BaseModel CONTENT_TYPE_PDF = "application/pdf" CONTENT_TYPE_DOCX = ( @@ -79,8 +79,8 @@ class Document(BaseModel): import_id: str # Unique source derived ID slug: str # Unique identifier created by backend publication_ts: datetime - source_url: Optional[AnyHttpUrl] # Original source URL - download_url: Optional[AnyHttpUrl] # Cached document URL + source_url: Optional[str] # Original source URL + download_url: Optional[str] # Cached document URL type: str source: str @@ -143,7 +143,7 @@ class DocumentParserInput(BaseModel): document_id: str document_name: str document_description: str - document_source_url: Optional[AnyHttpUrl] + document_source_url: Optional[str] document_cdn_object: Optional[str] = None document_content_type: Optional[str] = None document_md5_sum: Optional[str] = None