jdiegodcp / ramlfications

Python parser for RAML
https://ramlfications.readthedocs.org
Apache License 2.0
234 stars 50 forks source link

Gracefully catch parser.py AttributeErrors #34

Closed econchick closed 8 years ago

econchick commented 8 years ago

Addresses #30

When a RAML file has an empty mapping, parser.py would error out, which is now caught. Created some validation checks when resource type/traits/security scheme settings are an empty map (a judgment call because not explicitly stated in spec).

(sorry for the extra commits - had done some reordering :-/)