diff --git a/docs/getting_started/notifications-Examples.md b/docs/getting_started/notifications-Examples.md index 643f7f298e..65e33dc03a 100644 --- a/docs/getting_started/notifications-Examples.md +++ b/docs/getting_started/notifications-Examples.md @@ -160,7 +160,7 @@ from typing import Literal, Optional import httpx from fastapi import BackgroundTasks, FastAPI -from pydantic import BaseModel, BaseSettings +from pydantic.v1 import BaseModel, BaseSettings class WebHookSettings(BaseSettings): # (4) diff --git a/docs/integration/develop_integration/automation/create_a_module.md b/docs/integration/develop_integration/automation/create_a_module.md index f1721749ee..437dd2973d 100644 --- a/docs/integration/develop_integration/automation/create_a_module.md +++ b/docs/integration/develop_integration/automation/create_a_module.md @@ -71,7 +71,7 @@ Inside our Python package `testhttp_modules` we can create a new file `trigger_n ```python import time -from pydantic import BaseModel, HttpUrl +from pydantic.v1 import BaseModel, HttpUrl import requests from requests import HTTPError from sekoia_automation.trigger import Trigger # (1)! @@ -149,7 +149,7 @@ Inside our Python package `testhttp_modules` we can create a new file `action_re ```python from typing import Literal -from pydantic import BaseModel, HttpUrl +from pydantic.v1 import BaseModel, HttpUrl import requests from sekoia_automation.action import Action # (1)!