Fail closed on unsupported Rust schema constructs
This commit is contained in:
parent
d0b745950b
commit
a61ba4d365
1 changed files with 366 additions and 11 deletions
|
|
@ -50,6 +50,20 @@ fn generated_roots_reject_governance_regressions() {
|
|||
"occurred_at": "2026-07-15T00:00:00Z",
|
||||
"unexpected": true
|
||||
}));
|
||||
let paths: Vec<Value> = (0..=10_000)
|
||||
.map(|index| Value::String(format!("file-{index}")))
|
||||
.collect();
|
||||
assert_invalid::<JobSubmission>(json!({
|
||||
"source": {
|
||||
"kind": "hugging_face",
|
||||
"repository_type": "model",
|
||||
"repository_id": "owner/repository",
|
||||
"revision": "main",
|
||||
"selection": {
|
||||
"paths": paths
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
fn assert_all<T: DeserializeOwned>(values: &Value) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue