fixed type and page action serialization

This commit is contained in:
2026-05-18 19:46:29 -04:00
parent 4874c09fb5
commit 9cefc225fc
4 changed files with 16 additions and 20 deletions

View File

@ -1,7 +1,8 @@
use crate::database::action::Action;
use crate::database::schema::Schema;
use indexmap::IndexMap;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use indexmap::IndexMap;
use std::sync::Arc;
use std::sync::OnceLock;
@ -219,14 +220,6 @@ pub enum SchemaTypeOrArray {
Multiple(Vec<String>),
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Action {
#[serde(skip_serializing_if = "Option::is_none")]
pub navigate: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub punc: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum Dependency {