Skip to content

Commit

Permalink
Allow unread fields in the JSON schema (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored Oct 9, 2024
1 parent 7f01863 commit 14821db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use {

#[derive(Debug, Deserialize)]
#[serde(deny_unknown_fields)]
#[allow(dead_code)]
pub struct LinkEntry {
pub name: String,
pub path_static: Option<String>,
Expand All @@ -20,6 +21,7 @@ pub struct LinkEntry {

#[derive(Debug, Deserialize)]
#[serde(deny_unknown_fields)]
#[allow(dead_code)]
pub struct PythonBuildExtensionInfo {
pub in_core: bool,
pub init_fn: String,
Expand All @@ -36,6 +38,7 @@ pub struct PythonBuildExtensionInfo {

#[derive(Debug, Deserialize)]
#[serde(deny_unknown_fields)]
#[allow(dead_code)]
pub struct PythonBuildCoreInfo {
pub objs: Vec<String>,
pub links: Vec<LinkEntry>,
Expand All @@ -45,6 +48,7 @@ pub struct PythonBuildCoreInfo {

#[derive(Debug, Deserialize)]
#[serde(deny_unknown_fields)]
#[allow(dead_code)]
pub struct PythonBuildInfo {
pub core: PythonBuildCoreInfo,
pub extensions: BTreeMap<String, Vec<PythonBuildExtensionInfo>>,
Expand All @@ -56,6 +60,7 @@ pub struct PythonBuildInfo {

#[derive(Debug, Deserialize)]
#[serde(deny_unknown_fields)]
#[allow(dead_code)]
pub struct PythonJsonMain {
pub apple_sdk_canonical_name: Option<String>,
pub apple_sdk_deployment_target: Option<String>,
Expand Down

0 comments on commit 14821db

Please sign in to comment.