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
+22
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## 0.9.1
8
+
9
+
### Features
10
+
11
+
- Allow references to non-object, non-enum types [#371][#418][#425]. Thanks @p1-ra!
12
+
- Allow for attrs 21.x in generated clients [#412]
13
+
- Allow for using any version of Black [#416][#411]. Thanks @christhekeele!
14
+
15
+
### Fixes
16
+
17
+
- Prevent crash when providing a non-string default to a string attribute. [#414][#415]
18
+
- Deserialization of optional nullable properties when no value is returned from the API [#420][#381]. Thanks @forest-benchling!
19
+
7
20
## 0.9.0 - 2021-05-04
8
21
9
22
### Breaking Changes
@@ -45,9 +58,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
45
58
-`none` will not create a project folder at all, only the inner package folder (which won't be inner anymore)
46
59
47
60
- Attempt to detect and alert users if they are using an unsupported version of OpenAPI (#281).
61
+
48
62
- The media type application/vnd.api+json will now be handled just like application/json (#307). Thanks @jrversteegh!
63
+
49
64
- Support passing models into query parameters (#316). Thanks @forest-benchling!
65
+
50
66
- Add support for cookie parameters (#326).
67
+
51
68
- New `--file-encoding` command line option (#330). Sets the encoding used when writing generated files (defaults to utf-8). Thanks @dongfangtianyu!
52
69
53
70
### Changes
@@ -96,13 +113,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
96
113
### Breaking Changes
97
114
98
115
- Any request/response field that is not `required` and wasn't specified is now set to `UNSET` instead of `None`.
116
+
99
117
- Values that are `UNSET` will not be sent along in API calls
118
+
100
119
- Schemas defined with `type=object` will now be converted into classes, just like if they were created as ref components. The previous behavior was a combination of skipping and using generic Dicts for these schemas.
120
+
101
121
- Response schema handling was unified with input schema handling, meaning that responses will behave differently than before. Specifically, instead of the content-type deciding what the generated Python type is, the schema itself will.
102
122
103
123
- As a result of this, endpoints that used to return `bytes` when content-type was application/octet-stream will now return a `File` object if the type of the data is "binary", just like if you were submitting that type instead of receiving it.
104
124
105
125
- Instead of skipping input properties with no type, enum, anyOf, or oneOf declared, the property will be declared as `None`.
126
+
106
127
- Class (models and Enums) names will now contain the name of their parent element (if any). For example, a property declared in an endpoint will be named like {endpoint*name}*{previous*class*name}. Classes will no longer be deduplicated by appending a number to the end of the generated name, so if two names conflict with this new naming scheme, there will be an error instead.
107
128
108
129
### Additions
@@ -268,6 +289,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
268
289
### Changes
269
290
270
291
- The way most imports are handled was changed which _should_ lead to fewer unused imports in generated files.
292
+
271
293
- Better error messages
272
294
273
295
- Most error messages will contain some useful information about why it failed instead of a stack trace
0 commit comments