1
0
Fork 0

don't implement as_str for enums that don't need it

This commit is contained in:
Cyborus 2024-03-15 14:28:28 -04:00
parent 7938d81544
commit 5431303ecb
No known key found for this signature in database
3 changed files with 18 additions and 138 deletions

View file

@ -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 {