Add ObjectPath query language
Some checks failed
CI / Typos (push) Successful in 19s
CI / Build and test (push) Failing after 40s
CI / Clippy (push) Failing after 53s

This commit is contained in:
2026-03-05 21:35:07 -08:00
parent 0053ed3a69
commit a9e402bc83
11 changed files with 657 additions and 48 deletions

View File

@@ -7,10 +7,14 @@ pub use post::*;
mod misc;
pub use misc::*;
use crate::objectpath::ObjectPath;
pub mod objectpath;
pub static INIT_DB_TOML: &str = include_str!("./config.toml");
#[test]
#[expect(clippy::unwrap_used)]
#[expect(clippy::expect_used)]
fn init_db_toml_valid() {
toml::from_str::<ConfigToml>(INIT_DB_TOML).expect("INIT_DB_TOML should be valid TOML");
}
@@ -56,7 +60,7 @@ pub struct FieldSpec {
pub r#type: FieldType,
/// How to find this field in a data entry
pub path: OneOrMany<String>,
pub path: OneOrMany<ObjectPath>,
/// How to post-process this field
#[serde(default)]