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
042481b3ab
commit
d9ff9d4662
2 changed files with 12 additions and 4 deletions
|
|
@ -12817,9 +12817,7 @@
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
},
|
},
|
||||||
"SendPropIdentifier": {
|
"SendPropIdentifier": {
|
||||||
"type": "integer",
|
"type": "string"
|
||||||
"format": "uint64",
|
|
||||||
"minimum": 0.0
|
|
||||||
},
|
},
|
||||||
"SendPropName": {
|
"SendPropName": {
|
||||||
"type": "string"
|
"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)]
|
#[derive(Debug, Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Hash)]
|
||||||
pub struct SendPropIdentifier(u64);
|
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))]
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||||
#[derive(Clone, Display, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Display, PartialEq, Serialize, Deserialize)]
|
||||||
#[display("{index} = {value}")]
|
#[display("{index} = {value}")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue