added limit 1 to arrays treated as a single value in schemas
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::collections::HashSet;
|
||||
use indexmap::IndexMap;
|
||||
|
||||
pub mod context;
|
||||
pub mod error;
|
||||
@ -92,7 +93,7 @@ impl Validator {
|
||||
} else {
|
||||
Drop::with_errors(vec![Error {
|
||||
code: "SCHEMA_NOT_FOUND".to_string(),
|
||||
values: Some(HashMap::from([
|
||||
values: Some(IndexMap::from([
|
||||
("schema".to_string(), schema_id.to_string()),
|
||||
])),
|
||||
details: ErrorDetails {
|
||||
|
||||
Reference in New Issue
Block a user