Skip to content

Commit 66fa9a8

Browse files
committed
Merge branch 'main' into support_inline_object_schemas
2 parents 5addb4a + 296ffb6 commit 66fa9a8

File tree

6 files changed

+12
-715
lines changed

6 files changed

+12
-715
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## 0.7.0 - Unreleased
99

10+
### Breaking Changes
11+
12+
- Any request/response field that is not `required` and wasn't specified is now set to `UNSET` instead of `None`.
13+
- Values that are `UNSET` will not be sent along in API calls
14+
1015
### Additions
1116

1217
- Added a `--custom-template-path` option for providing custom jinja2 templates (#231 - Thanks @erichulburd!).
18+
- Better compatibility for "required" (whether or not the field must be included) and "nullable" (whether or not the field can be null) (#205 & #208). Thanks @bowenwr & @emannguitar!
1319

1420
## 0.6.2 - 2020-11-03
1521

end_to_end_tests/golden-record-custom/my_test_api_client/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66

77
class Unset:
8-
pass
8+
def __bool__(self) -> bool:
9+
return False
910

1011

1112
UNSET: Unset = Unset()

end_to_end_tests/golden-record/my_test_api_client/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66

77
class Unset:
8-
pass
8+
def __bool__(self) -> bool:
9+
return False
910

1011

1112
UNSET: Unset = Unset()

0 commit comments

Comments
 (0)