From 00319b570bfdb1162456481f3eea38a818c60aab Mon Sep 17 00:00:00 2001 From: Alex Groleau Date: Tue, 21 Apr 2026 11:53:51 -0400 Subject: [PATCH] fixed $ validation in schema ids --- src/database/compile/collection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/compile/collection.rs b/src/database/compile/collection.rs index c3a68da..fb88623 100644 --- a/src/database/compile/collection.rs +++ b/src/database/compile/collection.rs @@ -12,11 +12,11 @@ impl Schema { ) { #[cfg(not(test))] for c in id.chars() { - if !c.is_ascii_lowercase() && !c.is_ascii_digit() && c != '_' && c != '.' { + if !c.is_ascii_lowercase() && !c.is_ascii_digit() && c != '_' && c != '.' && c != '$' { errors.push(crate::drop::Error { code: "INVALID_IDENTIFIER".to_string(), message: format!( - "Invalid character '{}' in JSON Schema '{}' property: '{}'. Identifiers must exclusively contain [a-z0-9_.]", + "Invalid character '{}' in JSON Schema '{}' property: '{}'. Identifiers must exclusively contain [a-z0-9_.$]", c, field_name, id ), details: crate::drop::ErrorDetails {