| 1 | use schemars::JsonSchema; |
| 2 | |
| 3 | #[derive(JsonSchema)] |
| 4 | #[serde( |
| 5 | default = 0, |
| 6 | foo, |
| 7 | deny_unknown_fields, |
| 8 | deny_unknown_fields, |
| 9 | inline = 1, |
| 10 | inline, |
| 11 | inline, |
| 12 | with = "String", |
| 13 | serialize_with = "String", |
| 14 | a::path |
| 15 | )] |
| 16 | pub struct Struct1 { |
| 17 | #[serde(serialize_with = "u64")] |
| 18 | pub field: u32, |
| 19 | } |
| 20 | |
| 21 | #[derive(JsonSchema)] |
| 22 | #[schemars( |
| 23 | default = 0, |
| 24 | foo, |
| 25 | deny_unknown_fields, |
| 26 | deny_unknown_fields, |
| 27 | inline = 1, |
| 28 | inline, |
| 29 | inline, |
| 30 | with = "String", |
| 31 | serialize_with = "String", |
| 32 | a::path |
| 33 | )] |
| 34 | pub struct Struct2 { |
| 35 | #[schemars(serialize_with = "u64")] |
| 36 | pub field: u32, |
| 37 | } |
| 38 | |
| 39 | fn main() {} |