Skip to content

Commit

Permalink
[api-codegen] Refactored API request and response types
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Kauffmann committed Jun 14, 2022
1 parent 14130a8 commit b4c6e26
Show file tree
Hide file tree
Showing 33 changed files with 1,817 additions and 1,665 deletions.
2 changes: 1 addition & 1 deletion crates/lgn-api-codegen/src/rust/filters.rs
Expand Up @@ -55,7 +55,7 @@ pub fn fmt_type(
Type::Boolean => "bool".to_string(),
Type::Float32 => "f32".to_string(),
Type::Float64 => "f64".to_string(),
Type::Bytes | Type::Binary => "Bytes".to_string(),
Type::Bytes | Type::Binary => "lgn_online::codegen::Bytes".to_string(),
Type::DateTime => "chrono::DateTime::<chrono::Utc>".to_string(),
Type::Date => "chrono::Date::<chrono::Utc>".to_string(),
Type::Array(inner) => format!("Vec<{}>", fmt_type(inner, ctx, module_path).unwrap()),
Expand Down

0 comments on commit b4c6e26

Please sign in to comment.