You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
The spec defines resource level traits, stating they should be applied to all methods within the resource:
A trait may also be applied to a resource by using the is key, which is equivalent to applying the trait to all methods for that resource, whether declared explicitly in the resource definition or inherited from a resource type.
But the spec is silent on whether these traits should also be inherited by nested resources.
The text was updated successfully, but these errors were encountered:
Since the spec doesn't say there is inheritance, there isn't any inheritance. We might indeed clarify that in the spec, but honestly if we were to explicitly clarify all the things that could have been but are not, we might never finish... ;-)
Traits are inherited from a resource to its methods. While the spec is silent on whether these resource traits are inherited by nested resources, I don't think is farfetched for someone implementing a parser and code generator to wonder whether nested resource should also inherit these.
Resource level traits are indeed applied to ask the resource's methods,
because the RAML spec says so explicitly. Nonetheless, we will be
clarifying that in the spec.
Traits are inherited from a resource to its methods. While the spec is
silent on whether these resource traits are inherited by nested resources,
I don't think is farfetched for someone implementing a parser and code
generator to wonder whether nested resource should also inherit these.
—
Reply to this email directly or view it on GitHub #69 (comment).
The spec defines resource level traits, stating they should be applied to all methods within the resource:
But the spec is silent on whether these traits should also be inherited by nested resources.
The text was updated successfully, but these errors were encountered: