raml-java-parser icon indicating copy to clipboard operation
raml-java-parser copied to clipboard

It would be nice to have more detailed information about traits and resource types in model

Open petrochenko-pavel-a opened this issue 11 years ago • 6 comments

Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-153

petrochenko-pavel-a avatar Jan 09 '14 21:01 petrochenko-pavel-a

I would appreciate to have those - to be honest I was really disappointed about org.raml.model.Template poverty ...

maryoush avatar Jun 18 '14 12:06 maryoush

Acknowledged. Can you perhaps describe by example what a model that contains this information would look like?

usarid avatar Jun 18 '14 14:06 usarid

According to me for IDE needs it is good to have:

  • trait/resource type structure.
  • for each trait/resource type use - parameter values
  • also it would be nice to have an ability to look on resource without traits/resource types applied.

Regards, Pavel

On Wed, Jun 18, 2014 at 9:42 PM, Uri Sarid [email protected] wrote:

Acknowledged. Can you perhaps describe by example what a model that contains this information would look like?

— Reply to this email directly or view it on GitHub https://github.com/raml-org/raml-java-parser/issues/11#issuecomment-46444533 .

petrochenko-pavel-a avatar Jun 18 '14 15:06 petrochenko-pavel-a

Actually we have most of it in our fork https://github.com/petrochenko-pavel-a/raml-java-parser (however I am not sure how easy will be to merge it back)

petrochenko-pavel-a avatar Jun 18 '14 16:06 petrochenko-pavel-a

we would also appreciate to have on AbstractParam level the 'is trait' attribute as for Action,Resource which would point an effective trait for this Param if applied. If the attribute is locally overridden like e.g. type has changed or any crucial feature - name attribute changes then the 'is trait' for AbstractParam is not set ....

maryoush avatar Jun 25 '14 12:06 maryoush

+1, traits allow for a "description" and "usage" property that aren't currently present in the Trait model

jayashe avatar Aug 08 '14 16:08 jayashe