Schema endpoint

This commit is contained in:
2026-03-26 20:04:33 -07:00
parent fac300431a
commit 256af68382
4 changed files with 49 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
use serde::Deserialize;
use serde::{Deserialize, Serialize};
use std::{collections::HashMap, fmt::Debug, path::PathBuf};
use crate::{objectpath::ObjectPath, pattern::GroupPattern};
@@ -61,7 +61,7 @@ pub enum Source {
// MARK: schema
//
#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct FieldSpec {
/// How to find this field in a data entry
pub path: Vec<ObjectPath>,