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

Child resources don't contain traits from parent resources #12

Open
aolenev opened this issue Dec 17, 2015 · 3 comments
Open

Child resources don't contain traits from parent resources #12

aolenev opened this issue Dec 17, 2015 · 3 comments

Comments

@aolenev
Copy link

aolenev commented Dec 17, 2015

According to http://docs.raml.org/specs/1.0/#raml-10-spec-applying-resource-types-and-traits child resources should inherit traits (from "is" tag) from parent resources, but currently every resource contains just its own list of traits. Now users of RAML parsers should collect full list of traits manually in accordance with resources' inheritance and method
Please comment whether is it bug or not, and if it's not - please write it explicitly in ReadMe.md

@sichvoge
Copy link
Contributor

Can you point me to the section that is stating that?

@aolenev
Copy link
Author

aolenev commented Dec 18, 2015

Sorry, my interpretation of provided example in this section was wrong and there is an inheritance just from resource type to resource

@aolenev
Copy link
Author

aolenev commented Dec 18, 2015

And in this example "get" method should have its own 2 traits ('paged' and 'rateLimited') and 1 trait ('secured') which is common for all methods. Does it mean that if I call

method.is()

it should return all 3 traits? Now it returns just 2 traits

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants