Make request objects camelCase
This commit is contained in:
parent
45f1931497
commit
0c14a36da6
1 changed files with 4 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
|||
use chrono::{DateTime, Utc};
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use serde::{self, Deserialize};
|
||||
|
||||
use crate::database::models::DocumentVersionId;
|
||||
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CreateDocumentVersion {
|
||||
pub created_date: DateTime<Utc>,
|
||||
pub relative_path: String,
|
||||
|
|
@ -13,6 +14,7 @@ pub struct CreateDocumentVersion {
|
|||
}
|
||||
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct UpdateDocumentVersion {
|
||||
pub parent_version_id: DocumentVersionId,
|
||||
pub created_date: DateTime<Utc>,
|
||||
|
|
@ -22,6 +24,7 @@ pub struct UpdateDocumentVersion {
|
|||
}
|
||||
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct DeleteDocumentVersion {
|
||||
pub created_date: DateTime<Utc>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue