diff --git a/pumpkin-core/src/permission.rs b/pumpkin-core/src/permission.rs index 7229cbcb..6fd198df 100644 --- a/pumpkin-core/src/permission.rs +++ b/pumpkin-core/src/permission.rs @@ -1,3 +1,5 @@ +#[cfg(feature = "schemars")] +use schemars::JsonSchema; use num_derive::{FromPrimitive, ToPrimitive}; use serde::{Deserialize, Deserializer, Serialize, Serializer}; @@ -11,6 +13,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; /// - `Three`: `admin`: Player or executor can use commands related to multiplayer management. /// - `Four`: `owner`: Player or executor can use all of the commands, including commands related to server management. #[derive(FromPrimitive, ToPrimitive, Clone, Copy, Default, PartialEq, Eq)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] #[repr(i8)] pub enum PermissionLvl { #[default]