Skip to content

Commit 0addb0c

Browse files
Use HttpUrl for url_link.
1 parent 473fec3 commit 0addb0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eligibility_signposting_api/views/response_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from enum import Enum
22

3-
from pydantic import BaseModel, Field
3+
from pydantic import BaseModel, Field, HttpUrl
44

55

66
class Status(str, Enum):
@@ -35,7 +35,7 @@ class Action(BaseModel):
3535
action_type: str = Field(..., alias="actionType")
3636
action_code: str = Field(..., alias="actionCode")
3737
description: str
38-
url_link: str = Field(..., alias="urlLink")
38+
url_link: HttpUrl = Field(..., alias="urlLink")
3939

4040
model_config = {"populate_by_name": True}
4141

0 commit comments

Comments
 (0)