Skip to content

Commit 0de941d

Browse files
committed
Allow tokenUrl to be relative
Looks like the change before: 15c2fd5#diff-1a1a2865f336a376229eaffe0f56caac01c7a3a77602e07fe4a38fd550c6c318 Has been reverted: 0101a03#diff-6676609c9c37705f6953ffcc9eb6d33164df50f241d4844c5665cf5ff4305995R16 As mentioned, relative URLs are supported in OpenAPI 3.0+: swagger-api/swagger-ui#5243
1 parent 26e7e0f commit 0de941d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t
1313

1414
The 0.x prefix used in versions for this project is to indicate that breaking changes are expected frequently (several times a year). Breaking changes will increment the minor number, all other changes will increment the patch number. You can track the progress toward 1.0 [here](https://github.com/openapi-generators/openapi-python-client/projects/2).
1515

16+
## Current main
17+
18+
- Relative paths are now allowed in securitySchemes/OAuthFlow/tokenUrl (#618).
19+
1620
## 0.11.1
1721

1822
### Features

openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class OAuthFlow(BaseModel):
1313
"""
1414

1515
authorizationUrl: Optional[AnyUrl] = None
16-
tokenUrl: Optional[AnyUrl] = None
16+
tokenUrl: Optional[str] = None
1717
refreshUrl: Optional[AnyUrl] = None
1818
scopes: Dict[str, str]
1919

0 commit comments

Comments
 (0)