mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
fix schema for SendPropIdentifier
This commit is contained in:
parent
62b096c828
commit
afa30b56b4
2 changed files with 12 additions and 4 deletions
|
|
@ -12817,9 +12817,7 @@
|
|||
"minimum": 0.0
|
||||
},
|
||||
"SendPropIdentifier": {
|
||||
"type": "integer",
|
||||
"format": "uint64",
|
||||
"minimum": 0.0
|
||||
"type": "string"
|
||||
},
|
||||
"SendPropName": {
|
||||
"type": "string"
|
||||
|
|
|
|||
|
|
@ -1114,7 +1114,6 @@ impl<'a> TryFrom<&'a SendPropValue> for &'a [SendPropValue] {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||
#[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Hash)]
|
||||
pub struct SendPropIdentifier(u64);
|
||||
|
||||
|
|
@ -1199,6 +1198,17 @@ impl Serialize for SendPropIdentifier {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "schema")]
|
||||
impl schemars::JsonSchema for SendPropIdentifier {
|
||||
fn schema_name() -> String {
|
||||
"SendPropIdentifier".into()
|
||||
}
|
||||
|
||||
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
<String as schemars::JsonSchema>::json_schema(gen)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||
#[derive(Clone, Display, PartialEq, Serialize, Deserialize)]
|
||||
#[display("{index} = {value}")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue