Improve JSON Schema and add export script (#3461)

## Summary

A few errors I noticed after generating the schema.
This commit is contained in:
Charlie Marsh 2024-05-08 12:15:16 -04:00 committed by GitHub
parent 18d229e2bb
commit 7c6632114b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 187 additions and 30 deletions

View file

@ -67,7 +67,11 @@ impl schemars::JsonSchema for ExcludeNewer {
),
..schemars::schema::StringValidation::default()
})),
..Default::default()
metadata: Some(Box::new(schemars::schema::Metadata {
description: Some("Exclude distributions uploaded after the given timestamp.\n\nAccepts both RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`) and UTC dates in the same format (e.g., `2006-12-02`).".to_string()),
..schemars::schema::Metadata::default()
})),
..schemars::schema::SchemaObject::default()
}
.into()
}