You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+102Lines changed: 102 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,108 @@ Programmatic usage of this project (e.g., importing it as a Python module) and t
13
13
14
14
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).
15
15
16
+
## 0.14.1
17
+
18
+
### Fixes
19
+
20
+
- Allow parameters named "client" and "url" [#758, #762, #765]. Thanks @truenicoco & @juanber84!
21
+
22
+
## 0.14.0
23
+
24
+
### Breaking Changes
25
+
26
+
- Drop support for Python 3.7, put minimum version limit on Black (#754)
27
+
28
+
### Features
29
+
30
+
- Better typing (mypy) support for `Unset` (e.g., using if statements to check type) [#714, #752]. Thanks @taasan & @mcclurem! (#752)
31
+
32
+
### Fixes
33
+
34
+
- pyproject_no_poetry.toml.jinja template can be used to configure black and isort (closes #750) (#751)
35
+
36
+
## 0.13.4
37
+
38
+
### Features
39
+
40
+
- support httpx 0.24 (#746)
41
+
42
+
## 0.13.3
43
+
44
+
### Features
45
+
46
+
- Extend the UnexpectedStatus exception to include the response's content (#729)
47
+
- Added support of follow HTTP redirects (#724). Thanks @expobrain & @emann!
When generating properties, the `name` attribute of the OpenAPI schema will be used. When the `name` is not a valid
131
-
Python identifier (e.g. begins with a number) this string will be prepended. Defaults to "field\_".
130
+
When generating properties, the `name` attribute of the OpenAPI schema will be used. When the `name` is not a valid Python identifier (e.g. begins with a number) this string will be prepended. Defaults to "field\_". It will also be used to prefix fields in schema starting with "_" in order to avoid ambiguous semantics.
132
131
133
132
Example:
134
133
@@ -157,5 +156,17 @@ post_hooks:
157
156
- "black ."
158
157
```
159
158
159
+
### use_path_prefixes_for_title_model_names
160
+
161
+
By default, `openapi-python-client` generates class names which include the full path to the schema, including any parent-types. This can result in very long class names like `MyRouteSomeClassAnotherClassResponse`—which is very unique and unlikely to cause conflicts with future API additions, but also super verbose.
162
+
163
+
If you are carefully curating your `title` properties already to ensure no duplicate class names, you can turn off this prefixing feature by setting `use_path_prefixes_for_title_model_names` to `false` in your config file. This will use the `title` property of any object that has it set _without_ prefixing.
164
+
165
+
If this option results in conflicts, you will need to manually override class names instead via the `class_overrides` option.
166
+
167
+
### http_timeout
168
+
169
+
By default, the timeout for retrieving the schema file via HTTP is 5 seconds. In case there is an error when retrieving the schema, you might try and increase this setting to a higher value.
0 commit comments