jdiegodcp / ramlfications

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

select resourse type based on resourse type and http method #45

Closed xaratt closed 9 years ago

xaratt commented 9 years ago

If resourceTypes item contains few HTTP methods ramlfications will create few ResourceTypeNodes, each per method. But all of them will have same name and current implementation of assigning resource's resource type object just select first ResourceTypeNode.

I propose to check HTTP method for assigning resource type.

econchick commented 9 years ago

Hi @xaratt - I agree with the change, but you might want to check the tests before I can merge this.

Thanks!

econchick commented 9 years ago

Hi @xaratt - this has been fixed in a previous commit. Let me know if the behavior doesn't work for you.