Skip to content

Commit

Permalink
Fix pydantic required error on optional property (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Tjeerd.Verschragen <[email protected]>
  • Loading branch information
github-actions[bot] and tjeerddie authored Sep 28, 2023
1 parent 36d8b37 commit 2575c91
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.4.0
current_version = 1.4.1
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
Expand Down
2 changes: 1 addition & 1 deletion oauth2_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

"""This is the SURF Oauth2 module that interfaces with the oauth2 setup."""

__version__ = "1.4.0"
__version__ = "1.4.1"
4 changes: 2 additions & 2 deletions oauth2_lib/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ class OIDCConfig(BaseModel):
authorization_endpoint: str
token_endpoint: str
userinfo_endpoint: str
introspect_endpoint: Optional[str]
introspection_endpoint: Optional[str]
introspect_endpoint: Optional[str] = None
introspection_endpoint: Optional[str] = None
jwks_uri: str
response_types_supported: list[str]
response_modes_supported: list[str]
Expand Down
1 change: 0 additions & 1 deletion tests/test_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"token_endpoint": "https://connect.test.surfconext.nl/oidc/token",
"userinfo_endpoint": "https://connect.test.surfconext.nl/oidc/userinfo",
"introspect_endpoint": "https://connect.test.surfconext.nl/oidc/introspect",
"introspection_endpoint": "",
"jwks_uri": "https://connect.test.surfconext.nl/oidc/certs",
"response_types_supported": [
"code",
Expand Down

0 comments on commit 2575c91

Please sign in to comment.