fix(codegen): fixed codegen for array path parameters
This commit is contained in:
parent
b245e3e712
commit
47461b61b2
8 changed files with 6393 additions and 6334 deletions
|
|
@ -207,7 +207,9 @@ impl Property {
|
|||
let prim = match (schema.r#type, schema.format) {
|
||||
(Some("integer"), Some("int32")) => PrimitiveType::I32,
|
||||
(Some("integer"), Some("int64")) => PrimitiveType::I64,
|
||||
(Some("number"), /* Some("float") */ _) => PrimitiveType::Float,
|
||||
(Some("number"), /* Some("float") */ _) | (_, Some("float")) => {
|
||||
PrimitiveType::Float
|
||||
}
|
||||
(Some("string"), None) => PrimitiveType::String,
|
||||
(Some("boolean"), None) => PrimitiveType::Bool,
|
||||
_ => return None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue