Coder Social home page Coder Social logo

Comments (4)

comptly avatar comptly commented on June 21, 2024

Conversation continued over on the RAML forums: http://forums.raml.org/t/resource-level-trait-inheritance/396/4

Takeaway is that since nesting resources does not imply an inheritance chain, it would be nice to be explicit about it.

from raml-spec.

usarid avatar usarid commented on June 21, 2024

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... ;-)

from raml-spec.

eliaslevy avatar eliaslevy commented on June 21, 2024

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.

from raml-spec.

usarid avatar usarid commented on June 21, 2024

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.

Thanks,
Uri
On Aug 15, 2014 11:35 AM, "eliaslevy" [email protected] wrote:

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).

from raml-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.