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

Is applying traits via the "is" property is allowed within resource types? #66

Open
eliaslevy opened this issue Jul 30, 2014 · 3 comments

Comments

@eliaslevy
Copy link

The spec is silent on whether traits can be used within resource types, either at the resource type level or the method level within a resource type definition. None of the examples show this usage, but there doesn't seem to be any reason why it would not be valid and it would certainly be useful when composing resource types.

@usarid
Copy link
Contributor

usarid commented Aug 1, 2014

Yes, traits can absolutely be applied within resourceTypes. Here's an
example:
http://static-anypoint-mulesoft-com.s3.amazonaws.com/API_examples_notebooks/raml-design2.html
On Jul 30, 2014 4:15 PM, "eliaslevy" notifications@github.com wrote:

The spec is silent on whether traits can be used within resource types,
either at the resource type level or the method level within a resource
type definition. None of the examples show this usage, but there doesn't
seem to be any reason why it would not be valid and it would certainly be
useful when composing resource types.


Reply to this email directly or view it on GitHub
#66.

@eliaslevy
Copy link
Author

Excellent. Thanks. You may want to make this explicit in the spec.

@usarid
Copy link
Contributor

usarid commented Aug 1, 2014

Thanks, good feedback.
On Aug 1, 2014 10:39 AM, "eliaslevy" notifications@github.com wrote:

Excellent. Thanks. You may want to make this explicit in the spec.


Reply to this email directly or view it on GitHub
#66 (comment).

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

No branches or pull requests

3 participants