raml-java-parser
raml-java-parser copied to clipboard
It would be nice to have more detailed information about traits and resource types in model
Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-153
I would appreciate to have those - to be honest I was really disappointed about org.raml.model.Template poverty ...
Acknowledged. Can you perhaps describe by example what a model that contains this information would look like?
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 .
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)
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 ....
+1, traits allow for a "description" and "usage" property that aren't currently present in the Trait model