GREsau / schemars

Generate JSON Schema documents from Rust code
https://graham.cool/schemars/
MIT License
791 stars 220 forks source link

Adjacent Tagged Enums should use if and else statements. #314

Open wyatt-herkamp opened 1 month ago

wyatt-herkamp commented 1 month ago

So using if then else statements for the adjacently tagged enums is a cleaner way and closer to what the docs recommend.

Docs

Also now it will also use oneOf for the enum if enum has a description or title.