mulesoft-labs / rajapa

Other
0 stars 2 forks source link

Add validation - examples and example must be mutually exclusive #35

Closed eleonoraortega closed 8 years ago

eleonoraortega commented 8 years ago

The following definition is not validated:

dogAge:
   type: number
   examples:
     previous: 12
     current: 13
   example: 1

and it is parsed as follow:

"dogAge":  {
    "type": "number",
    "examples": {
        "previous": 12,
        "current": 13
    },
    "example": 1,
    "displayName": "dogAge"
}