Skip to content

Commit 0f58cfd

Browse files
committed
chore: Prep 0.9.1 release
1 parent 79acbf8 commit 0f58cfd

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44

55
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).
66

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+
720
## 0.9.0 - 2021-05-04
821

922
### Breaking Changes
@@ -45,9 +58,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4558
- `none` will not create a project folder at all, only the inner package folder (which won't be inner anymore)
4659

4760
- Attempt to detect and alert users if they are using an unsupported version of OpenAPI (#281).
61+
4862
- The media type application/vnd.api+json will now be handled just like application/json (#307). Thanks @jrversteegh!
63+
4964
- Support passing models into query parameters (#316). Thanks @forest-benchling!
65+
5066
- Add support for cookie parameters (#326).
67+
5168
- New `--file-encoding` command line option (#330). Sets the encoding used when writing generated files (defaults to utf-8). Thanks @dongfangtianyu!
5269

5370
### Changes
@@ -96,13 +113,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
96113
### Breaking Changes
97114

98115
- Any request/response field that is not `required` and wasn't specified is now set to `UNSET` instead of `None`.
116+
99117
- Values that are `UNSET` will not be sent along in API calls
118+
100119
- 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+
101121
- 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.
102122

103123
- 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.
104124

105125
- Instead of skipping input properties with no type, enum, anyOf, or oneOf declared, the property will be declared as `None`.
126+
106127
- 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.
107128

108129
### Additions
@@ -268,6 +289,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
268289
### Changes
269290

270291
- The way most imports are handled was changed which _should_ lead to fewer unused imports in generated files.
292+
271293
- Better error messages
272294

273295
- Most error messages will contain some useful information about why it failed instead of a stack trace

dobby.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[[workflows]]
2-
name = "Start Task"
2+
name = "task"
33
[[workflows.steps]]
44
type = "SelectGitHubIssue"
55

66
[[workflows.steps]]
77
type = "SwitchBranches"
88

99
[[workflows]]
10-
name = "Prepare Release"
10+
name = "release"
1111
[[workflows.steps]]
1212
type = "UpdateProjectFromCommits"
1313

1414
[[workflows.steps]]
1515
type = "Command"
16-
command = "prettier --write CHANGELOG.md"
16+
command = "npx prettier --write CHANGELOG.md"
1717

1818
[github]
1919
owner = "triaxtec"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openapi-python-client"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
description = "Generate modern Python clients from OpenAPI"
55
repository = "https://github.com/triaxtec/openapi-python-client"
66
license = "MIT"

0 commit comments

Comments
 (0)