You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[scala] Escape reserved words, support Array[Byte] (#7378)
* [scala] Escape reserved words, support Array[Byte]
Previously, Array[Byte] was compiling to ArrayByte. This provides a type
mapping to output the correct type.
This also escapes reserved words with grave accents, as is most common
in Scala. Escaping with an underscore prefix breaks serialization (in
Jackson, for example) unless templates are modified manually. Escaping
using grave accent should unblock most serializers from requiring
template modifications.
* [scala] Regenerate integration test outputs
* [scala] Regenerate samples
* [scala] Remove unused imports in related codegen files
Copy file name to clipboardExpand all lines: modules/swagger-codegen/src/test/resources/integrationtests/scala/client/required-attributes-expected/src/main/scala/io/swagger/client/api/HobbiesApi.scala
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,7 @@ class HobbiesApi(
86
86
* Query hobbies with some additional optional meaningless parameters
87
87
*
88
88
* @params a string (optional, default to some string)
89
+
* @param`class` a string, testing keyword escaping (optional, default to some string)
89
90
* @parami an integer (optional, default to 1)
90
91
* @paraml a long (optional, default to 2)
91
92
* @parambool a bool (optional, default to true)
@@ -97,8 +98,8 @@ class HobbiesApi(
97
98
* @parambin an octet string (optional, default to DEADBEEF)
Copy file name to clipboardExpand all lines: modules/swagger-codegen/src/test/resources/integrationtests/scala/client/required-attributes-expected/src/main/scala/io/swagger/client/model/Hobby.scala
0 commit comments