Skip to content

Commit 572379d

Browse files
authored
Refrain from using @computed_field decorator absent from Pydantic v1
1 parent e8c7d2b commit 572379d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nmdc_server/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from typing import Optional
33

4-
from pydantic import BaseSettings, computed_field
4+
from pydantic import BaseSettings
55

66

77
class Settings(BaseSettings):
@@ -38,7 +38,7 @@ class Settings(BaseSettings):
3838
orcid_client_secret: str = "oauth secret key"
3939
orcid_authorize_scope: str = "/authenticate"
4040

41-
@computed_field
41+
@property
4242
def orcid_openid_config_url(self) -> str:
4343
r"""
4444
Derives the `orcid_openid_config_url` field's value based upon another field's value.

0 commit comments

Comments
 (0)