Closed eyasuyuki closed 7 years ago
I re-write a property 'money' from:
money:
type: object
allOf:
- $ref: '#/definitions/Money'
To:
money:
$ref: '#/definitions/Money'
Then I had no errors.
But I want to add this property to vendor extension property like below:
money:
x-foo: true
type: object
allOf:
- $ref: '#/definitions/Money'
c.f.) https://github.com/OAI/OpenAPI-Specification/issues/556
Is this same issue of #23 ?
@eyasuyuki hey, thanks for the bug report! I think this is more related to the #39
Failing Reads:
object BodyReads extends MissingDefaultReads {
implicit val MoneyReads: Reads[Money] = (
(JsPath \ "id").readNullable[Long] and (JsPath \ "userId").readNullable[Long] and (JsPath \ "amount").readNullable[BigDecimal] and (JsPath \ "createDate").readNullable[ZonedDateTime]
)(Money.apply _)
implicit val UserReads: Reads[User] = (
(JsPath \ "id").readNullable[Long] and (JsPath \ "name").readNullable[String] and (JsPath \ "money").read[UserMoney]
)(User.apply _)
}
I use this swagger spec.
I got these error.
project/plugins.sbt