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
+25-15
Original file line number
Diff line number
Diff line change
@@ -5,52 +5,62 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
-
9
8
## Unreleased
9
+
10
10
### Additions
11
+
11
12
- New `--meta` command line option for specifying what type of metadata should be generated:
12
13
-`poetry` is the default value, same behavior you're used to in previous versions
13
-
-`setup` will generate a pyproject.toml with no Poetry information, and instead create a `setup.py` with the
14
+
-`setup` will generate a pyproject.toml with no Poetry information, and instead create a `setup.py` with the
14
15
project info.
15
16
-`none` will not create a project folder at all, only the inner package folder (which won't be inner anymore)
16
-
- Lowered the minimum version of `python-dateutil` for improved dependency compatibility with other projects
17
17
18
+
### Changes
19
+
20
+
- Lowered the minimum version of `python-dateutil` to 2.8.0 for improved compatibility (#298 & #299). Thanks @bowenwr!
21
+
- The `from_dict` method on generated models is now a `@classmethod` instead of `@staticmethod` (#215 & #292). Thanks @forest-benchling!
18
22
19
23
## 0.7.3 - 2020-12-21
24
+
20
25
### Fixes
26
+
21
27
- Spacing and extra returns for Union types of `additionalProperties` (#266 & #268). Thanks @joshzana & @packyg!
22
28
- Title of inline schemas will no longer be missing characters (#271 & #274). Thanks @kalzoo!
23
-
- Handling of nulls (Nones) when parsing or constructing dates (#267). Thanks @fyhertz!
24
-
29
+
- Handling of nulls (Nones) when parsing or constructing dates (#267). Thanks @fyhertz!
25
30
26
31
## 0.7.2 - 2020-12-08
32
+
27
33
### Fixes
34
+
28
35
- A bug in handling optional properties that are themselves models (introduced in 0.7.1) (#262). Thanks @packyg!
29
36
30
37
## 0.7.1 - 2020-12-08
38
+
31
39
### Additions
40
+
32
41
- Support for additionalProperties attribute in OpenAPI schemas and "free-form" objects by adding an `additional_properties` attribute to generated models. **COMPATIBILITY NOTE**: this will prevent any model property with a name that would be coerced to "additional_properties" in the generated client from generating properly (#218 & #252). Thanks @packyg!
33
42
34
43
### Fixes
44
+
35
45
- Enums will once again work with query parameters (#259). Thanks @packyg!
36
46
- Generated Poetry metadata in pyproject.toml will properly indicate Python 3.6 compatibility (#258). Thanks @bowenwr!
37
47
38
48
## 0.7.0 - 2020-11-25
39
49
40
50
### Breaking Changes
41
51
42
-
- Any request/response field that is not `required` and wasn't specified is now set to `UNSET` instead of `None`.
52
+
- Any request/response field that is not `required` and wasn't specified is now set to `UNSET` instead of `None`.
43
53
- Values that are `UNSET` will not be sent along in API calls
44
-
- Schemas defined with `type=object` will now be converted into classes, just like if they were created as ref components.
45
-
The previous behavior was a combination of skipping and using generic Dicts for these schemas.
46
-
- Response schema handling was unified with input schema handling, meaning that responses will behave differently than before.
47
-
Specifically, instead of the content-type deciding what the generated Python type is, the schema itself will.
48
-
- 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.
54
+
- Schemas defined with `type=object` will now be converted into classes, just like if they were created as ref components.
55
+
The previous behavior was a combination of skipping and using generic Dicts for these schemas.
56
+
- Response schema handling was unified with input schema handling, meaning that responses will behave differently than before.
57
+
Specifically, instead of the content-type deciding what the generated Python type is, the schema itself will.
58
+
- 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.
49
59
- Instead of skipping input properties with no type, enum, anyOf, or oneOf declared, the property will be declared as `None`.
50
-
- Class (models and Enums) names will now contain the name of their parent element (if any). For example, a property
51
-
declared in an endpoint will be named like {endpoint_name}_{previous_class_name}. Classes will no longer be
52
-
deduplicated by appending a number to the end of the generated name, so if two names conflict with this new naming
53
-
scheme, there will be an error instead.
60
+
- Class (models and Enums) names will now contain the name of their parent element (if any). For example, a property
61
+
declared in an endpoint will be named like {endpoint*name}*{previous_class_name}. Classes will no longer be
62
+
deduplicated by appending a number to the end of the generated name, so if two names conflict with this new naming
0 commit comments