Make prepositions/conjunctions in generated schema names lowercase
This commit is contained in:
parent
09d76c93e4
commit
60bfc6ee49
14 changed files with 30 additions and 30 deletions
|
@ -47,8 +47,8 @@ pub fn derive_json_schema(input: proc_macro::TokenStream) -> proc_macro::TokenSt
|
|||
}
|
||||
} else if type_name == schema_base_name {
|
||||
let mut schema_name_fmt = schema_base_name;
|
||||
schema_name_fmt.push_str("_For_{}");
|
||||
schema_name_fmt.push_str(&"_And_{}".repeat(type_params.len() - 1));
|
||||
schema_name_fmt.push_str("_for_{}");
|
||||
schema_name_fmt.push_str(&"_and_{}".repeat(type_params.len() - 1));
|
||||
quote! {
|
||||
format!(#schema_name_fmt #(,#type_params::schema_name())*)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue