feat(api): enum-typed visibility/data_type/kind + open-map fields in OpenAPI (#24 #29)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 20:14:30 +02:00
parent d3c33a6c5d
commit 5a72f85989
5 changed files with 39 additions and 11 deletions
+1
View File
@@ -20,6 +20,7 @@ use crate::{
#[derive(Serialize, ToSchema)]
pub(crate) struct AuthorityView {
pub id: String,
#[schema(value_type = domain::AuthorityKind)]
pub kind: String,
pub external_uri: Option<String>,
pub labels: Vec<LabelView>,