Inline Inheritance(?), a way to inline another data type instead of including as an object


#1

For example, I have multiple data types that have: id, name, createdby, createdtime and etc…

Would it make sense to have a Common type and include that inlined to another type (if possible)?

Common:
  type: object
  properties:
    id:
    name:
    createdTime: datetime

Project:
  type: object
  properties:
    common:
      type: Common
      inline: true

which of course results in

{
  "id": value
  "name": value
  "createdTime": 2014-05-25T18:21:24.454-07:00
}

#2

What about

Project:
  type: Common
  properties:
    foo: