Skip to content

fix(codegen): construct request structs directly in code samples - #252

Merged
matoous merged 1 commit into
mainfrom
md/codesamples
Sep 11, 2026
Merged

fix(codegen): construct request structs directly in code samples#252
matoous merged 1 commit into
mainfrom
md/codesamples

Conversation

@matoous

@matoous matoous commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Samples hid SDK types behind serde_json::from_value. Render struct literals from generated declarations, preserving nested types, enums, nullable fields, and additional properties.

For example, emit CreateSampleRequest { selected: "example".to_string(), ..Default::default() } instead of deserializing json!({"selected": "example"}).

Samples hid SDK types behind serde_json::from_value. Render struct
literals from generated declarations, preserving nested types, enums,
nullable fields, and additional properties.

For example, emit CreateSampleRequest { selected: "example".to_string(),
..Default::default() } instead of deserializing json!({"selected": "example"}).

Validated all 49 samples, workspace tests, Clippy, and formatting.
@matoous matoous self-assigned this Sep 11, 2026
@matoous
matoous merged commit d0d57d9 into main Sep 11, 2026
10 checks passed
@matoous
matoous deleted the md/codesamples branch September 11, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant