mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
fix schema for serde_repr usage
This commit is contained in:
parent
a7f3f419c1
commit
dd3cd6364e
3 changed files with 11 additions and 11 deletions
16
schema.json
16
schema.json
|
|
@ -206,10 +206,10 @@
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"BaselineIndex": {
|
"BaselineIndex": {
|
||||||
"type": "string",
|
"type": "integer",
|
||||||
"enum": [
|
"enum": [
|
||||||
"First",
|
0,
|
||||||
"Second"
|
1
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"BitReadStream": {
|
"BitReadStream": {
|
||||||
|
|
@ -12993,12 +12993,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"UpdateType": {
|
"UpdateType": {
|
||||||
"type": "string",
|
"type": "integer",
|
||||||
"enum": [
|
"enum": [
|
||||||
"Preserve",
|
0,
|
||||||
"Leave",
|
1,
|
||||||
"Enter",
|
2,
|
||||||
"Delete"
|
3
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"UserCmd": {
|
"UserCmd": {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ pub mod tempentities;
|
||||||
pub mod usermessage;
|
pub mod usermessage;
|
||||||
pub mod voice;
|
pub mod voice;
|
||||||
|
|
||||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema_repr))]
|
||||||
#[derive(
|
#[derive(
|
||||||
BitRead, BitWrite, Debug, Clone, Copy, PartialEq, Eq, Serialize_repr, Deserialize_repr,
|
BitRead, BitWrite, Debug, Clone, Copy, PartialEq, Eq, Serialize_repr, Deserialize_repr,
|
||||||
)]
|
)]
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ impl PartialOrd<u32> for EntityId {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema_repr))]
|
||||||
#[derive(
|
#[derive(
|
||||||
BitRead, BitWrite, Clone, Copy, Debug, PartialEq, Eq, Serialize_repr, Deserialize_repr,
|
BitRead, BitWrite, Clone, Copy, Debug, PartialEq, Eq, Serialize_repr, Deserialize_repr,
|
||||||
)]
|
)]
|
||||||
|
|
@ -88,7 +88,7 @@ pub enum UpdateType {
|
||||||
Delete = 0b11,
|
Delete = 0b11,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema_repr))]
|
||||||
#[derive(Debug, Eq, PartialEq, Copy, Clone, Serialize_repr, Deserialize_repr, Default)]
|
#[derive(Debug, Eq, PartialEq, Copy, Clone, Serialize_repr, Deserialize_repr, Default)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum BaselineIndex {
|
pub enum BaselineIndex {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue