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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Changelog

## Unreleased
## 0.24.0-alpha.2

### Fixed

- A generated Rust client keeps the declared type of an optional field in a request-only type. 0.24.0-alpha.1 made such a field `Option<T>` when its generated type has no `Default`, which broke code that sets it. The client only serializes request types, so the field's `#[serde(default)]` needs no `Default`. Fields of types the client deserializes, because they appear in responses or because the configured derives include `Deserialize`, still become `Option<T>`.
- A generated Rust client keeps the declared type of an optional field in a request-only type. 0.24.0-alpha.1 made such a field `Option<T>` when its generated type has no `Default`, which broke code that sets it. The client only serializes request types, so the field's `#[serde(default)]` needs no `Default`. Fields of types the client deserializes, because they appear in responses or because the configured derives include `Deserialize`, still become `Option<T>`. ([#223](https://github.com/thepartly/reflectapi/pull/223))

## 0.24.0-alpha.1

Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions reflectapi-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "reflectapi-cli"
version = "0.24.0-alpha.1"
version = "0.24.0-alpha.2"
edition = "2021"
default-run = "reflectapi"

Expand All @@ -23,7 +23,7 @@ doc = false
workspace = true

[dependencies]
reflectapi = { path = "../reflectapi", version = "0.24.0-alpha.1", features = ["codegen"] }
reflectapi = { path = "../reflectapi", version = "0.24.0-alpha.2", features = ["codegen"] }
rouille = "3"

clap = { version = "4.5.3", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion reflectapi-demo/clients/python/uv.lock

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

6 changes: 3 additions & 3 deletions reflectapi-demo/tests/rust/enum_compatibility/Cargo.lock

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

6 changes: 3 additions & 3 deletions reflectapi-demo/tests/rust/field_presence/Cargo.lock

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

4 changes: 2 additions & 2 deletions reflectapi-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "reflectapi-derive"
version = "0.24.0-alpha.1"
version = "0.24.0-alpha.2"
edition = "2021"

license = "Apache-2.0"
Expand All @@ -22,7 +22,7 @@ workspace = true
proc-macro = true

[dependencies]
reflectapi-schema = { path = '../reflectapi-schema', version = "0.24.0-alpha.1" }
reflectapi-schema = { path = '../reflectapi-schema', version = "0.24.0-alpha.2" }

proc-macro2 = "1.0"
quote = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion reflectapi-python-runtime/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "reflectapi-runtime"
version = "0.24.0a1"
version = "0.24.0a2"
description = "Runtime library for ReflectAPI Python clients"
readme = "README.md"
requires-python = ">=3.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
)
from .types import BatchResult, ReflectapiEmpty, ReflectapiInfallible

__version__ = "0.24.0a1"
__version__ = "0.24.0a2"

__all__ = [
# Authentication
Expand Down
2 changes: 1 addition & 1 deletion reflectapi-schema/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "reflectapi-schema"
version = "0.24.0-alpha.1"
version = "0.24.0-alpha.2"
edition = "2021"

license = "Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions reflectapi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "reflectapi"
version = "0.24.0-alpha.1"
version = "0.24.0-alpha.2"
edition = "2021"

license = "Apache-2.0"
Expand All @@ -20,8 +20,8 @@ workspace = true

[dependencies]
# workspace dependencies
reflectapi-derive = { path = "../reflectapi-derive", version = "0.24.0-alpha.1" }
reflectapi-schema = { path = "../reflectapi-schema", version = "0.24.0-alpha.1", default-features = false }
reflectapi-derive = { path = "../reflectapi-derive", version = "0.24.0-alpha.2" }
reflectapi-schema = { path = "../reflectapi-schema", version = "0.24.0-alpha.2", default-features = false }

# mandatory 3rd party dependencies
serde = { version = "1.0.197", features = ["derive"] }
Expand Down
Loading