Skip to content

Commit 3b12217

Browse files
bowenwrdbanty
andcommitted
fix: Lower version requirements for python-dateutil in generated client openapi-generators#298 (openapi-generators#299)
* Lower version requirements for python-dateutil in generated client openapi-generators#298 * Update CHANGELOG.md Co-authored-by: Dylan Anthony <[email protected]> Co-authored-by: Dylan Anthony <[email protected]>
1 parent 2c2f40c commit 3b12217

File tree

1 file changed

+15
-26
lines changed

1 file changed

+15
-26
lines changed

CHANGELOG.md

+15-26
Original file line numberDiff line numberDiff line change
@@ -5,63 +5,52 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## 0.8.0 - Unreleased
98

9+
## Unreleased
1010
### Additions
11-
1211
- New `--meta` command line option for specifying what type of metadata should be generated:
1312
- `poetry` is the default value, same behavior you're used to in previous versions
14-
- `setup` will generate a pyproject.toml with no Poetry information, and instead create a `setup.py` with the
13+
- `setup` will generate a pyproject.toml with no Poetry information, and instead create a `setup.py` with the
1514
project info.
1615
- `none` will not create a project folder at all, only the inner package folder (which won't be inner anymore)
17-
- Attempt to detect and alert users if they are using an unsupported version of OpenAPI (#281).
18-
19-
### Changes
16+
- Lowered the minimum version of `python-dateutil` for improved dependency compatibility with other projects
2017

21-
- Lowered the minimum version of `python-dateutil` to 2.8.0 for improved compatibility (#298 & #299). Thanks @bowenwr!
22-
- The `from_dict` method on generated models is now a `@classmethod` instead of `@staticmethod` (#215 & #292). Thanks @forest-benchling!
2318

2419
## 0.7.3 - 2020-12-21
25-
2620
### Fixes
27-
2821
- Spacing and extra returns for Union types of `additionalProperties` (#266 & #268). Thanks @joshzana & @packyg!
2922
- Title of inline schemas will no longer be missing characters (#271 & #274). Thanks @kalzoo!
30-
- Handling of nulls (Nones) when parsing or constructing dates (#267). Thanks @fyhertz!
23+
- Handling of nulls (Nones) when parsing or constructing dates (#267). Thanks @fyhertz!
3124

32-
## 0.7.2 - 2020-12-08
3325

26+
## 0.7.2 - 2020-12-08
3427
### Fixes
35-
3628
- A bug in handling optional properties that are themselves models (introduced in 0.7.1) (#262). Thanks @packyg!
3729

3830
## 0.7.1 - 2020-12-08
39-
4031
### Additions
41-
4232
- 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!
4333

4434
### Fixes
45-
4635
- Enums will once again work with query parameters (#259). Thanks @packyg!
4736
- Generated Poetry metadata in pyproject.toml will properly indicate Python 3.6 compatibility (#258). Thanks @bowenwr!
4837

4938
## 0.7.0 - 2020-11-25
5039

5140
### Breaking Changes
5241

53-
- Any request/response field that is not `required` and wasn't specified is now set to `UNSET` instead of `None`.
42+
- Any request/response field that is not `required` and wasn't specified is now set to `UNSET` instead of `None`.
5443
- Values that are `UNSET` will not be sent along in API calls
55-
- Schemas defined with `type=object` will now be converted into classes, just like if they were created as ref components.
56-
The previous behavior was a combination of skipping and using generic Dicts for these schemas.
57-
- Response schema handling was unified with input schema handling, meaning that responses will behave differently than before.
58-
Specifically, instead of the content-type deciding what the generated Python type is, the schema itself will.
59-
- 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.
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.
6049
- Instead of skipping input properties with no type, enum, anyOf, or oneOf declared, the property will be declared as `None`.
61-
- Class (models and Enums) names will now contain the name of their parent element (if any). For example, a property
62-
declared in an endpoint will be named like {endpoint*name}*{previous_class_name}. Classes will no longer be
63-
deduplicated by appending a number to the end of the generated name, so if two names conflict with this new naming
64-
scheme, there will be an error instead.
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.
6554

6655
### Additions
6756

0 commit comments

Comments
 (0)