@@ -28,6 +28,7 @@ fn normalize_codeowners_pattern(pattern: &str) -> String {
2828#[ derive( Debug , Serialize , Deserialize ) ]
2929#[ cfg_attr( feature = "utoipa" , derive( ToSchema ) ) ]
3030pub struct CodeownersEntry {
31+ #[ cfg_attr( feature = "utoipa" , schema( value_type = String ) ) ]
3132 pub source_file : PathBuf ,
3233 pub line_number : usize ,
3334 pub pattern : String ,
@@ -163,6 +164,7 @@ impl std::fmt::Display for OutputFormat {
163164#[ derive( Debug , Clone , Serialize , Deserialize ) ]
164165#[ cfg_attr( feature = "utoipa" , derive( ToSchema ) ) ]
165166pub struct FileEntry {
167+ #[ cfg_attr( feature = "utoipa" , schema( value_type = String ) ) ]
166168 pub path : PathBuf ,
167169 pub owners : Vec < Owner > ,
168170 pub tags : Vec < Tag > ,
@@ -176,7 +178,9 @@ pub struct CodeownersCache {
176178 pub entries : Vec < CodeownersEntry > ,
177179 pub files : Vec < FileEntry > ,
178180 // Derived data for lookups
181+ #[ cfg_attr( feature = "utoipa" , schema( value_type = std:: collections:: HashMap <Owner , Vec <String >>) ) ]
179182 pub owners_map : std:: collections:: HashMap < Owner , Vec < PathBuf > > ,
183+ #[ cfg_attr( feature = "utoipa" , schema( value_type = std:: collections:: HashMap <Tag , Vec <String >>) ) ]
180184 pub tags_map : std:: collections:: HashMap < Tag , Vec < PathBuf > > ,
181185}
182186
0 commit comments