chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

31
vendor/schemars/tests/transparent.rs vendored Normal file
View File

@@ -0,0 +1,31 @@
mod util;
use schemars::JsonSchema;
use util::*;
#[allow(dead_code)]
#[derive(JsonSchema)]
pub struct OuterStruct {
inner: TransparentStruct,
}
#[allow(dead_code)]
#[derive(JsonSchema)]
#[serde(transparent)]
pub struct TransparentStruct {
#[serde(with = "TransparentNewType")]
inner: (),
}
#[allow(dead_code)]
#[derive(JsonSchema)]
#[schemars(transparent)]
pub struct TransparentNewType(Option<InnerStruct>);
#[allow(dead_code)]
#[derive(JsonSchema)]
pub struct InnerStruct(String, i32);
#[test]
fn transparent_struct() -> TestResult {
test_default_generated_schema::<OuterStruct>("transparent-struct")
}