don't implement as_str for enums that don't need it
This commit is contained in:
parent
7938d81544
commit
5431303ecb
3 changed files with 18 additions and 138 deletions
|
|
@ -261,7 +261,7 @@ fn schema_subtypes(
|
|||
..
|
||||
} => {
|
||||
let name = format!("{parent_name}{}", name.to_pascal_case());
|
||||
let subtype = structs::create_enum(&name, schema.description.as_deref(), _enum)?;
|
||||
let subtype = structs::create_enum(&name, schema.description.as_deref(), _enum, false)?;
|
||||
subtypes.push(subtype);
|
||||
}
|
||||
Schema {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue