From 45a2594de642401aeb0c5779ad861a5963df3151 Mon Sep 17 00:00:00 2001 From: konsti Date: Fri, 10 May 2024 20:50:24 +0200 Subject: [PATCH] Allow unknown pyproject.toml fields (#3511) Fixes #3510, we use typo error messages though. Tested manually by adding `[tool.uv.pip]`, we should add proper tests for this feature. --- crates/uv-requirements/src/pyproject.rs | 2 -- uv.schema.json | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/uv-requirements/src/pyproject.rs b/crates/uv-requirements/src/pyproject.rs index a9d74f0d4..fb8d27b6b 100644 --- a/crates/uv-requirements/src/pyproject.rs +++ b/crates/uv-requirements/src/pyproject.rs @@ -109,7 +109,6 @@ pub struct Tool { #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[serde(deny_unknown_fields)] pub struct ToolUv { pub sources: Option>, pub workspace: Option, @@ -117,7 +116,6 @@ pub struct ToolUv { #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -#[serde(deny_unknown_fields)] pub struct ToolUvWorkspace { pub members: Option>, pub exclude: Option>, diff --git a/uv.schema.json b/uv.schema.json index 3141daeee..f1f7f85e9 100644 --- a/uv.schema.json +++ b/uv.schema.json @@ -58,7 +58,6 @@ ] } }, - "additionalProperties": false, "definitions": { "AnnotationStyle": { "description": "Indicate the style of annotation comments, used to indicate the dependencies that requested each package.", @@ -916,8 +915,7 @@ "$ref": "#/definitions/String" } } - }, - "additionalProperties": false + } } } } \ No newline at end of file