mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-22 08:12:44 +00:00
Improve JSON Schema and add export script (#3461)
## Summary A few errors I noticed after generating the schema.
This commit is contained in:
parent
18d229e2bb
commit
7c6632114b
10 changed files with 187 additions and 30 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue