fix(codegen): fixed codegen for array path parameters

This commit is contained in:
pyrite 2025-05-27 19:27:56 +02:00
parent b245e3e712
commit 47461b61b2
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
8 changed files with 6393 additions and 6334 deletions

View file

@ -317,23 +317,3 @@ impl Enum {
})
}
}
#[cfg(test)]
mod test {
use crate::openapi::schema::OpenApiSchema;
use super::*;
#[test]
fn codegen() {
let schema = OpenApiSchema::read().unwrap();
let revive_setting = schema.components.schemas.get("ReviveSetting").unwrap();
let r#enum = Enum::from_schema("ReviveSetting", revive_setting).unwrap();
let code = r#enum.codegen().unwrap();
panic!("{code}");
}
}