feat(domain): derive ToSchema on Visibility/AuthorityKind; add DataType enum (#3 Option A)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 20:08:41 +02:00
parent 331a6d7f34
commit d3c33a6c5d
5 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ use crate::{AuthorityId, LocalizedLabel};
/// NOTE: kept in sync by hand with the
/// `CHECK (kind IN ('person', 'organisation', 'place'))` constraint in
/// `crates/db/migrations/0002_vocabularies_authorities.sql` — add a variant in both places.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, utoipa::ToSchema)]
#[serde(rename_all = "lowercase")]
pub enum AuthorityKind {
Person,