mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +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": {
|
||||
"BaselineIndex": {
|
||||
"type": "string",
|
||||
"type": "integer",
|
||||
"enum": [
|
||||
"First",
|
||||
"Second"
|
||||
0,
|
||||
1
|
||||
]
|
||||
},
|
||||
"BitReadStream": {
|
||||
|
|
@ -12993,12 +12993,12 @@
|
|||
}
|
||||
},
|
||||
"UpdateType": {
|
||||
"type": "string",
|
||||
"type": "integer",
|
||||
"enum": [
|
||||
"Preserve",
|
||||
"Leave",
|
||||
"Enter",
|
||||
"Delete"
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"UserCmd": {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ pub mod tempentities;
|
|||
pub mod usermessage;
|
||||
pub mod voice;
|
||||
|
||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema_repr))]
|
||||
#[derive(
|
||||
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(
|
||||
BitRead, BitWrite, Clone, Copy, Debug, PartialEq, Eq, Serialize_repr, Deserialize_repr,
|
||||
)]
|
||||
|
|
@ -88,7 +88,7 @@ pub enum UpdateType {
|
|||
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)]
|
||||
#[repr(u8)]
|
||||
pub enum BaselineIndex {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue