Skip to content

Openapi SDK deserialization fails in existing Serde models #6

@francescobianco

Description

@francescobianco

I have existing Serde structs in my project:

#[derive(Serialize, Deserialize)]
struct User { id: u64, name: String }

SDK returns slightly different JSON (user_id instead of id). Is there a recommended way to map SDK responses into existing data structures?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions