[scala] add [date-time] field to codegen unit test (#3939)

This commit is contained in:
sullis 2019-09-24 03:24:52 -07:00 committed by William Cheng
parent 85b4ddea39
commit 002da8d9f9
2 changed files with 6 additions and 1 deletions

View File

@ -75,6 +75,9 @@ components:
type: string type: string
foobar: foobar:
type: boolean type: boolean
created_at:
type: string
format: date-time
required: required:
- id - id
- try - try
@ -82,3 +85,4 @@ components:
- finally - finally
- lazy - lazy
- foobar - foobar
- created_at

View File

@ -36,7 +36,8 @@ case class SomeObj (
`lazy`: String, `lazy`: String,
`private`: Option[String] = None, `private`: Option[String] = None,
`type`: Option[String] = None, `type`: Option[String] = None,
foobar: Boolean foobar: Boolean,
createdAt: DateTime
) extends ApiModel ) extends ApiModel
object SomeObjEnums { object SomeObjEnums {