Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Multiple inheritance + custom type bug #32

Open
postatum opened this issue Oct 4, 2016 · 0 comments
Open

Multiple inheritance + custom type bug #32

postatum opened this issue Oct 4, 2016 · 0 comments
Labels

Comments

@postatum
Copy link
Contributor

postatum commented Oct 4, 2016

Note that getting canonical form if type Cat produces JSON with nested type.type for property name.

#%RAML 1.0 Library

types:
  CatName:
    type: string

  CatWithCity:
    type: object

  CatWithAddress:
    type: object

  Cat:
    type: [CatWithAddress, CatWithCity]
    properties:
      name:
        type: CatName
{
  "additionalProperties": true,
  "type": "object",
  "properties": {
    "name": {
      "type": {
        "type": "string"
      },
      "required": true
    }
  }
}
@jstoiko jstoiko added the 0.1.x label Aug 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants