Improve schema naming for deriving on remote types
This commit is contained in:
parent
ea28450c30
commit
781f40b061
8 changed files with 36 additions and 23 deletions
|
@ -16,6 +16,7 @@ use schemars::{schema_for, JsonSchema};
|
|||
// This is just a copy of the remote data structure that Schemars can use to
|
||||
// create a suitable JsonSchema impl.
|
||||
#[derive(JsonSchema)]
|
||||
#[serde(remote = "Duration")]
|
||||
pub struct DurationDef {
|
||||
pub secs: i64,
|
||||
pub nanos: i32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue