strip session-added comments
This commit is contained in:
@@ -22,11 +22,8 @@ pub type WatchlistResponse = PaginatedResponse<crate::watchlist::WatchlistEntryD
|
||||
pub type PaginatedMovieHits = PaginatedResponse<crate::search::MovieSearchHitDto>;
|
||||
pub type PaginatedPersonHits = PaginatedResponse<crate::search::PersonSearchHitDto>;
|
||||
|
||||
/// The one body every JSON API refusal carries.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]
|
||||
pub struct ErrorResponse {
|
||||
/// Human-readable message.
|
||||
pub error: String,
|
||||
/// Stable machine-readable code, e.g. `NOT_FOUND`.
|
||||
pub code: String,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
//! Pure domain -> DTO mappers (depend only on `domain` and this crate).
|
||||
mod diary;
|
||||
mod goals;
|
||||
mod movies;
|
||||
|
||||
@@ -126,7 +126,6 @@ pub struct UserProfileResponse {
|
||||
pub goals: Option<Vec<GoalDto>>,
|
||||
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
|
||||
pub is_federated: bool,
|
||||
/// The instance's service account: never deletable, so UIs hide the action.
|
||||
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
|
||||
pub is_service_account: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
@@ -156,7 +155,6 @@ pub struct UpdateProfileFieldsRequest {
|
||||
pub fields: Vec<ProfileFieldDto>,
|
||||
}
|
||||
|
||||
/// Proof of intent for account deletion: the acting user's own password.
|
||||
#[derive(Debug, Clone, Deserialize, utoipa::ToSchema)]
|
||||
pub struct DeleteAccountRequest {
|
||||
pub password: String,
|
||||
|
||||
Reference in New Issue
Block a user