mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-18 19:21:46 +00:00
Add JSON Schema support (#3046)
## Summary This PR adds JSON Schema support. The setup mirrors Ruff's own.
This commit is contained in:
parent
7c5b13c412
commit
7fb2bf816f
31 changed files with 818 additions and 26 deletions
|
|
@ -27,6 +27,7 @@ pub(crate) struct Tools {
|
|||
#[allow(dead_code)]
|
||||
#[derive(Debug, Clone, Default, Deserialize)]
|
||||
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
||||
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||
pub struct Options {
|
||||
pub native_tls: Option<bool>,
|
||||
pub no_cache: Option<bool>,
|
||||
|
|
@ -38,6 +39,7 @@ pub struct Options {
|
|||
#[allow(dead_code)]
|
||||
#[derive(Debug, Clone, Default, Deserialize)]
|
||||
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
||||
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||
pub struct PipOptions {
|
||||
pub python: Option<String>,
|
||||
pub system: Option<bool>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue