File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use std::collections::BTreeSet;
2424/// # Arguments
2525///
2626/// * `name` - The name of the field (e.g., "email").
27- /// * `ty` - The Rust type string (e.g., " String", " Option<i32>" ).
27+ /// * `ty` - The Rust type string (e.g., ` String`, ` Option<i32>` ).
2828/// * `pub_vis` - Whether the field should be public.
2929/// * `indent_size` - Indentation level (spaces) for formatting context.
3030///
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub struct RouteParam {
3535 pub name : String ,
3636 /// Whether it's from Path or Query
3737 pub source : ParamSource ,
38- /// Rust type (e.g. " Uuid", " i32", " Option<String>" )
38+ /// Rust type (e.g. ` Uuid`, ` i32`, ` Option<String>` )
3939 pub ty : String ,
4040}
4141
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub struct JsonSchema {
5555
5656/// Trait for converting Rust type strings to JSON Schemas.
5757pub trait TypeMapper {
58- /// Maps a Rust type string (e.g., " Option<i32>" ) to a JSON Schema.
58+ /// Maps a Rust type string (e.g., ` Option<i32>` ) to a JSON Schema.
5959 fn map ( & self , rust_type : & str ) -> AppResult < JsonSchema > ;
6060}
6161
@@ -142,7 +142,7 @@ fn map_ast_type(ty: &ast::Type) -> AppResult<JsonSchema> {
142142 }
143143}
144144
145- /// Helper to handle types like Option<T> or Vec<T>.
145+ /// Helper to handle types like ` Option<T>` or ` Vec<T>` .
146146fn handle_generic_wrapper < F > (
147147 segment : ast:: PathSegment ,
148148 make_nullable : bool ,
You can’t perform that action at this time.
0 commit comments