Skip to content

fix(swagger): correct AccountUpdate.address schema type from Vec<String> to String#866

Merged
ElusAegis merged 3 commits intomainfrom
ag/fix/swagger-type-name-fix
Mar 4, 2026
Merged

fix(swagger): correct AccountUpdate.address schema type from Vec<String> to String#866
ElusAegis merged 3 commits intomainfrom
ag/fix/swagger-type-name-fix

Conversation

@ElusAegis
Copy link
Contributor

Summary

  • AccountUpdate.address uses #[serde(with = "hex_bytes")] which serialises Bytes as a single hex string, not an array. The #[schema(value_type=Vec<String>)] annotation was mislabelled, causing Swagger UI to show the field as an array. Corrected to String.

🤖 Generated with Claude Code

ElusAegis and others added 3 commits March 3, 2026 23:55
Addresses remaining schema issues after PR #733, and extends the test
suite to catch similar regressions in the future.

Key changes:
- Fix AccountUpdate.address annotation from Vec<String> to String
- Fix TracingResult.retriggers annotation to avoid invalid allOf in items
- Remove dead commented-out derive on ComponentTvlRequestResponse
- Add test_openapi_has_no_empty_schemas to catch bare {} schemas
- Add test_openapi_no_tuple_allof_in_items to detect tuple allOf pattern

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
`Bytes` serialises as a single hex string via `hex_bytes`, not an array,
so the OpenAPI annotation should be `String` not `Vec<String>`.

Key changes:
- Fix `#[schema(value_type=Vec<String>)]` → `#[schema(value_type=String)]`
  on `AccountUpdate.address`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

To run Claude review, comment /review or /claude-review on this PR.

Copy link
Collaborator

@louise-poole louise-poole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Tycho Mar 4, 2026
@ElusAegis ElusAegis merged commit 3cb5b82 into main Mar 4, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Tycho Mar 4, 2026
@ElusAegis ElusAegis deleted the ag/fix/swagger-type-name-fix branch March 4, 2026 08:25
propellerci bot pushed a commit that referenced this pull request Mar 4, 2026
## [0.145.2](0.145.1...0.145.2) (2026-03-04)

### Bug Fixes

* **swagger:** correct AccountUpdate.address schema annotation ([7bd1b0c](7bd1b0c))
* **swagger:** correct AccountUpdate.address schema type from Vec<String> to String ([#866](#866)) ([3cb5b82](3cb5b82))
@propellerci
Copy link

propellerci bot commented Mar 4, 2026

This PR is included in version 0.145.2 🎉

@propellerci propellerci bot added the true label Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants