Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/rust/client_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ use crate::rust::lib_gen::{Module, ModuleDef, ModuleName};
use crate::rust::model_gen::RefCache;
use crate::rust::printer::*;
use crate::rust::types::{
ref_or_box_schema_type, ref_or_schema_type, DataType, ModelType, RustPrinter, RustResult,
ref_or_box_schema_type, ref_or_schema_type, DataType, IntFormat, ModelType, RustPrinter,
RustResult,
};
use crate::{Error, Result};
use convert_case::{Case, Casing};
Expand Down Expand Up @@ -748,6 +749,7 @@ fn render_path_param(method: &Method, name: &str) -> RustResult {
DataType::String => Ok(unit() + &param.name),
DataType::Uuid => Ok(unit() + "&" + &param.name + ".to_string()"),
DataType::Model(_) => Ok(unit() + "&" + &param.name + ".to_string()"),
DataType::Int(IntFormat::U64) => Ok(unit() + "&" + &param.name + ".to_string()"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it only for u64?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only one needed currently. My plan was to keep this branch open for now as I'm working on atomic deployments. Will do a pass after to cleanup and merge.

Will put as draft for now.

_ => Err(Error::unexpected(format!(
"Unexpected param type {name}: {:?}",
param.tpe
Expand Down
Loading