Skip to content

Split behavior for request deserialization and response serialization #3

@Rexagon

Description

@Rexagon

Add overrides for top level attribute meta list:

#[derive(Serialize, Deserialize, OpgModel)]
pub struct Test {
    #[serde(serialize_with = "produces_string", deserialize_with = "produces_int")]
    #[opg(res("Just response"), req("Just request", integer))]
    field: String,
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions