Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 772dc24

Browse files
committedMar 12, 2021
Merge branch 'main' into benchling-allof-support
2 parents 74da896 + 2861a34 commit 772dc24

File tree

91 files changed

+1742
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1742
-322
lines changed
 

‎CHANGELOG.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ 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
8+
## 0.8.0 - 2021-02-19
9+
10+
### Breaking Changes
11+
12+
- Generated clients will no longer pass through `None` to query parameters. Previously, any query params set to `None` would surface as empty strings (per the default behavior of `httpx`). This is contrary to the defaults indicated by the OpenAPI 3.0.3 spec. Ommitting these parameters makes us more compliant. If you require a style of `null` to be passed to your query parameters, please request support for the OpenAPI "style" attribute. Thank you to @forest-benchling and @bowenwr for a ton of input on this.
913

1014
### Additions
1115

@@ -15,13 +19,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1519
project info.
1620
- `none` will not create a project folder at all, only the inner package folder (which won't be inner anymore)
1721
- Attempt to detect and alert users if they are using an unsupported version of OpenAPI (#281).
18-
- Fixes `Enum` deserialization when the value is `UNSET`.
19-
- Basic support for `allOf` in models (#98)
22+
- The media type application/vnd.api+json will now be handled just like application/json (#307). Thanks @jrversteegh!
23+
- Support passing models into query parameters (#316). Thanks @forest-benchling!
24+
- Add support for cookie parameters (#326).
25+
- New `--file-encoding` command line option (#330). Sets the encoding used when writing generated files (defaults to utf-8). Thanks @dongfangtianyu!
2026

2127
### Changes
2228

2329
- Lowered the minimum version of `python-dateutil` to 2.8.0 for improved compatibility (#298 & #299). Thanks @bowenwr!
2430
- The `from_dict` method on generated models is now a `@classmethod` instead of `@staticmethod` (#215 & #292). Thanks @forest-benchling!
31+
- Renamed all templates to end in `.jinja`, and all python-templates to end in `.py.jinja` to fix confusion with the latest version of mypy. Note **this will break existing custom templates until you update your template file names**.
32+
33+
### Fixes
34+
35+
- Endpoint tags are now sanitized during parsing to fix an issue where `My Tag` and `MyTag` are seen as two different tags but are then later unified, causing errors when creating directories. Thanks @p1-ra! (#328)
36+
- Parser will softly ignore value error during schema responses' status code convertion from string to integer (not a number). Errors will be reported to the end user and parsing will continue to proceed (#327).
37+
- The generated `from_dict` and `to_dict` methods of models will now properly handle `nullable` and `not required` properties that are themselves generated models (#315). Thanks @forest-benchling!
38+
- Fixed a typo in the async example in generated README.md files (#337). Thanks @synchronizing!
39+
- Fix deserialization of `None` and `Unset` properties for all types by unifying the checks (#334). Thanks @forest-benchling!
40+
- If duplicate model names are detected during generation, you'll now get an error message instead of broken code (#336). Thanks @forest-benchling!
41+
- Fixes `Enum` deserialization when the value is `UNSET` (#306). Thanks @bowenwr!
2542

2643
## 0.7.3 - 2020-12-21
2744

‎dobby.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[[workflows]]
2+
name = "Start Task"
3+
[[workflows.steps]]
4+
type = "SelectGitHubIssue"
5+
6+
[[workflows.steps]]
7+
type = "SwitchBranches"
8+
9+
[[workflows]]
10+
name = "Prepare Release"
11+
[[workflows.steps]]
12+
type = "UpdateProjectFromCommits"
13+
14+
[[workflows.steps]]
15+
type = "Command"
16+
command = "prettier --write CHANGELOG.md"
17+
18+
[github]
19+
owner = "triaxtec"
20+
repo = "openapi-python-client"

0 commit comments

Comments
 (0)
Please sign in to comment.