-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScalaAkkaClientCodegenTest: refactor assertions (#3893)
- Loading branch information
Showing
2 changed files
with
55 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
modules/openapi-generator/src/test/resources/codegen/scala/SomeObj.scala.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* ping some object | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package hello.world.model | ||
|
||
import hello.world.core.ApiModel | ||
import org.joda.time.DateTime | ||
import java.util.UUID | ||
|
||
case class SomeObj ( | ||
`type`: Option[SomeObjEnums.`Type`] = None, | ||
id: Long, | ||
name: Option[String] = None, | ||
`val`: Option[String] = None, | ||
`var`: Option[String] = None, | ||
`class`: Option[String] = None, | ||
`trait`: Option[String] = None, | ||
`object`: Option[String] = None, | ||
`try`: String, | ||
`catch`: String, | ||
`finally`: String, | ||
`def`: Option[String] = None, | ||
`for`: Option[String] = None, | ||
`implicit`: Option[String] = None, | ||
`match`: Option[String] = None, | ||
`case`: Option[String] = None, | ||
`import`: Option[String] = None, | ||
`lazy`: String, | ||
`private`: Option[String] = None, | ||
`type`: Option[String] = None, | ||
foobar: Boolean | ||
) extends ApiModel | ||
|
||
object SomeObjEnums { | ||
|
||
type `Type` = `Type`.Value | ||
object `Type` extends Enumeration { | ||
val SomeObjIdentifier = Value("SomeObjIdentifier") | ||
} | ||
|
||
} | ||
|