Skip to content

Commit 46e7a99

Browse files
committed
Add review nit
1 parent bc2f17d commit 46e7a99

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

docs/reference/openapi.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,9 @@ components:
9393
title: Client Id
9494
type: string
9595
logout_redirect_endpoint:
96-
anyOf:
97-
- type: string
98-
- type: 'null'
9996
description: The oidc endpoint required to logout
10097
title: Logout Redirect Endpoint
98+
type: string
10199
well_known_url:
102100
description: URL to fetch OIDC config from the provider
103101
title: Well Known Url

src/blueapi/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
ValidationError,
2222
field_validator,
2323
)
24+
from pydantic.json_schema import SkipJsonSchema
2425

2526
from blueapi.utils import BlueapiBaseModel, InvalidConfigError
2627

@@ -162,7 +163,7 @@ class OIDCConfig(BlueapiBaseModel):
162163
)
163164
client_id: str = Field(description="Client ID")
164165
client_audience: str = Field(description="Client Audience(s)", default="blueapi")
165-
logout_redirect_endpoint: str | None = Field(
166+
logout_redirect_endpoint: str | SkipJsonSchema[None] = Field(
166167
description="The oidc endpoint required to logout", default=None
167168
)
168169

0 commit comments

Comments
 (0)