Skip to content

Commit 15c2fd5

Browse files
committed
Allow relative paths in tokenUrl (closes #130)
1 parent 949d6e3 commit 15c2fd5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## 0.5.1 - Unreleased
9+
### Fixes
10+
- Relative paths are now allowed in securitySchemes/OAuthFlow/tokenUrl (#130).
11+
12+
813
## 0.5.0 - 2020-08-05
914
### Changes
1015
- When encountering a problem, the generator will now differentiate between warnings (things it was able to skip past)
@@ -23,7 +28,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2328
- Tests can now be run on Windows.
2429

2530

26-
2731
## 0.4.2 - 2020-06-13
2832
### Additions
2933
- Support for responses with no content (#63 & #66). Thanks @acgray!

openapi_python_client/schema/oauth_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OAuthFlow(BaseModel):
1515
This MUST be in the form of a URL.
1616
"""
1717

18-
tokenUrl: Optional[AnyUrl] = None
18+
tokenUrl: Optional[str] = None
1919
"""
2020
**REQUIRED** for `oauth2 ("password", "clientCredentials", "authorizationCode")`.
2121
The token URL to be used for this flow.

0 commit comments

Comments
 (0)