minor fix: using Pydantic model_validate instead of deprecated parse_obj (#22239)

Signed-off-by: neatguycoding <15627489+NeatGuyCoding@users.noreply.github.com>
deploy/enterprise
NeatGuyCoding 7 months ago committed by NFish
parent b4779d4042
commit 8ef7f0fed2

@ -240,7 +240,7 @@ def refresh_authorization(
response = requests.post(token_url, data=params) response = requests.post(token_url, data=params)
if not response.ok: if not response.ok:
raise ValueError(f"Token refresh failed: HTTP {response.status_code}") raise ValueError(f"Token refresh failed: HTTP {response.status_code}")
return OAuthTokens.parse_obj(response.json()) return OAuthTokens.model_validate(response.json())
def register_client( def register_client(

Loading…
Cancel
Save