Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 45ebc57e0c | |||
| 00319b570b |
@ -12,11 +12,11 @@ impl Schema {
|
|||||||
) {
|
) {
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
for c in id.chars() {
|
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 {
|
errors.push(crate::drop::Error {
|
||||||
code: "INVALID_IDENTIFIER".to_string(),
|
code: "INVALID_IDENTIFIER".to_string(),
|
||||||
message: format!(
|
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
|
c, field_name, id
|
||||||
),
|
),
|
||||||
details: crate::drop::ErrorDetails {
|
details: crate::drop::ErrorDetails {
|
||||||
|
|||||||
Reference in New Issue
Block a user