Open
Description
Hi,
I have two models :
swagger: '2.0'
info:
version: 1.0.0
paths:
definitions:
entity:
type: object
properties:
id:
type: string
format: uuid
example: "2ad91139-c3bc-420b-91a8-8aa9409aea07"
created_at:
type: string
format: date-time
required:
- id
- created_at
and
swagger: '2.0'
info:
version: 1.0.0
paths:
definitions:
point:
allOf:
- $ref: 'entity.yaml#/definitions/entity'
This generates two errors :
target/scala-2.11/routes/main/model/point.yaml.scala:21: not found: type DateTime
target/scala-2.11/routes/main/model/point.yaml.scala:21: not found: type UUID
As a fix, I'm adding this object to the definitions
.
import:
description: This is only a fix for https://github.com/zalando/api-first-hand/issues/23
type: object
properties:
uuid:
type: string
format: uuid
date_time:
type: string
format: date-time