Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ when correcting output that was wrong or incomplete on the wire.

## [Unreleased]

## [0.18.0] - 2026-09-25

### Breaking changes

#### Generated Rust API

- Properties with nullable `anyOf` branches, or a `oneOf` with exactly one
nullable branch, now preserve that nullability in generated Rust types. A
required field may change from `T` to `Option<T>`; an optional field may
change from `Option<T>` to `Option<Option<T>>` so missing and explicit `null`
remain distinct. Regenerate clients and update affected constructors and
field access.

### Fixed

- Generated union deserializers no longer reject a branch whose re-encoding
Expand All @@ -14,6 +27,8 @@ when correcting output that was wrong or incomplete on the wire.
optional field that is skipped on output. Exact matches still take
precedence, so values that decoded before keep their branch. This
unblocks every record of the Cloudflare DNS API.
- Required nullable union properties now accept an explicit JSON `null`,
including Cloudflare responses with a nullable `result` field.

## [0.17.0] - 2026-09-14

Expand Down Expand Up @@ -721,7 +736,8 @@ would have passed any amount of spec-diffing.
signed enum values, recursive unions, parameter collisions, optional request
bodies, range response codes, and path-segment encoding.

[Unreleased]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.17.0...HEAD
[Unreleased]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.18.0...HEAD
[0.18.0]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.17.0...v0.18.0
[0.17.0]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.16.0...v0.17.0
[0.16.0]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.15.0...v0.16.0
[0.15.0]: https://github.com/gpu-cli/openapi-to-rust/compare/v0.14.0...v0.15.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exclude = ["tmp"]

[package]
name = "openapi-to-rust"
version = "0.17.0"
version = "0.18.0"
edition = "2024"
rust-version = "1.88.0"
autobins = false
Expand Down
Loading