Skip to content

Commit e2009e0

Browse files
authored
Merge pull request #2 from bushaHQ/fix/swagger-enum-reserved-words
fix: add index, name, and values to enum exception words
2 parents 6fc7194 + c59f068 commit e2009e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/exception_words.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ List<String> exceptionWords = <String>[
5858
'override',
5959
];
6060

61-
List<String> exceptionWordsInEnum = <String>[...exceptionWords, 'value'];
61+
List<String> exceptionWordsInEnum = <String>[...exceptionWords, 'value', 'index', 'name', 'values'];
62+

0 commit comments

Comments
 (0)