swagger_parser icon indicating copy to clipboard operation
swagger_parser copied to clipboard

Fix: Add name protection to freezed union and improve keywords list

Open hharkovenko opened this issue 3 months ago • 0 comments

When freezed union is created from enum that has name matching a keyword(in my case "default"), factory name is not protected as enum value. Keyword list also doesn't have dart types, that also can lead to errors with code gen(in my case I have a model with field called "int").

hharkovenko avatar Nov 12 '25 20:11 hharkovenko