alecsammon/php-raml-parser — pull request #37 by qpautrat (2014-12-16 10:58:19+00:00)
Title: Bug/schema and types

Hi Alec,

There is a problem if schema is defined in types or traits. I figure out in my last pull request ( #36 ).
Example:

```yaml
resourceTypes:
- collection:
post:
description: Create a new <>
body:
application/json:
schema: <>
```
This will throw a JSON exception.
I fix this by parsing schema only in resources instead of all definition. But maybe i'm wrong.