Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Use Pydantic AnyHttpUrl instead of HttpUrl - fixes #22 #26

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/edutap/wallet_google/models/datatypes/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from .enums import NfcConstraint
from .enums import ScreenshotEligibility
from .localized_string import LocalizedString
from pydantic import AnyHttpUrl
from pydantic import AnyUrl
from pydantic import Field
from pydantic import HttpUrl
from typing import Annotated
from typing_extensions import deprecated

Expand Down Expand Up @@ -112,9 +112,9 @@ class CallbackOptions(Model):
see: https://developers.google.com/wallet/generic/rest/v1/CallbackOptions
"""

url: HttpUrl | None = None
url: AnyHttpUrl | None = None
updateRequestUrl: Annotated[
HttpUrl | None,
AnyHttpUrl | None,
Field(
deprecated=deprecated(
'The Parameter "updateRequestUrl" is deprecated on "CallbackOption", use "url" instead.'
Expand Down