Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split behavior for request deserialization and response serialization #3

Open
Rexagon opened this issue Jun 25, 2020 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Rexagon
Copy link
Owner

Rexagon commented Jun 25, 2020

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,
}
@Rexagon Rexagon added the enhancement New feature or request label Jun 25, 2020
@Rexagon Rexagon added this to the 1.0 milestone Jun 25, 2020
@Rexagon Rexagon self-assigned this Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant