swagger_parser
swagger_parser copied to clipboard
Fix: Add name protection to freezed union and improve keywords list
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").