fix: add validator dependency to database
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -3656,6 +3656,7 @@ dependencies = [
|
|||||||
"ulid 1.0.0",
|
"ulid 1.0.0",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"url-escape",
|
"url-escape",
|
||||||
|
"validator 0.16.0",
|
||||||
"web-push 0.10.0",
|
"web-push 0.10.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ default = ["mongodb", "async-std-runtime", "tasks"]
|
|||||||
# Core
|
# Core
|
||||||
revolt-config = { version = "0.7.0", path = "../config" }
|
revolt-config = { version = "0.7.0", path = "../config" }
|
||||||
revolt-result = { version = "0.7.0", path = "../result" }
|
revolt-result = { version = "0.7.0", path = "../result" }
|
||||||
revolt-models = { version = "0.7.0", path = "../models" }
|
revolt-models = { version = "0.7.0", path = "../models", features = [
|
||||||
|
"validator",
|
||||||
|
] }
|
||||||
revolt-presence = { version = "0.7.0", path = "../presence" }
|
revolt-presence = { version = "0.7.0", path = "../presence" }
|
||||||
revolt-permissions = { version = "0.7.0", path = "../permissions", features = [
|
revolt-permissions = { version = "0.7.0", path = "../permissions", features = [
|
||||||
"serde",
|
"serde",
|
||||||
@@ -45,6 +47,7 @@ decancer = "1.6.2"
|
|||||||
deadqueue = "0.2.4"
|
deadqueue = "0.2.4"
|
||||||
linkify = { optional = true, version = "0.8.1" }
|
linkify = { optional = true, version = "0.8.1" }
|
||||||
url-escape = { optional = true, version = "0.1.1" }
|
url-escape = { optional = true, version = "0.1.1" }
|
||||||
|
validator = { version = "0.16", features = ["derive"] }
|
||||||
isahc = { optional = true, version = "1.7", features = ["json"] }
|
isahc = { optional = true, version = "1.7", features = ["json"] }
|
||||||
|
|
||||||
# Serialisation
|
# Serialisation
|
||||||
|
|||||||
@@ -3,16 +3,14 @@ use std::collections::HashSet;
|
|||||||
use indexmap::{IndexMap, IndexSet};
|
use indexmap::{IndexMap, IndexSet};
|
||||||
use iso8601_timestamp::Timestamp;
|
use iso8601_timestamp::Timestamp;
|
||||||
use revolt_config::config;
|
use revolt_config::config;
|
||||||
use revolt_models::{
|
use revolt_models::v0::{
|
||||||
v0::{
|
self, BulkMessageResponse, DataMessageSend, Embed, MessageAuthor, MessageSort, MessageWebhook,
|
||||||
self, BulkMessageResponse, DataMessageSend, Embed, MessageAuthor, MessageSort,
|
PushNotification, ReplyIntent, SendableEmbed, Text, RE_MENTION,
|
||||||
MessageWebhook, PushNotification, ReplyIntent, SendableEmbed, Text, RE_MENTION,
|
|
||||||
},
|
|
||||||
validator::Validate,
|
|
||||||
};
|
};
|
||||||
use revolt_permissions::{ChannelPermission, PermissionValue};
|
use revolt_permissions::{ChannelPermission, PermissionValue};
|
||||||
use revolt_result::Result;
|
use revolt_result::Result;
|
||||||
use ulid::Ulid;
|
use ulid::Ulid;
|
||||||
|
use validator::Validate;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
events::client::EventV1,
|
events::client::EventV1,
|
||||||
|
|||||||
Reference in New Issue
Block a user