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

[RAML 0.8] BodyLike should not extend from RAMLLanguageElement #47

Open
sichvoge opened this issue Apr 14, 2016 · 4 comments
Open

[RAML 0.8] BodyLike should not extend from RAMLLanguageElement #47

sichvoge opened this issue Apr 14, 2016 · 4 comments
Assignees

Comments

@sichvoge
Copy link
Contributor

Same as #46. You can not define description at this level.

@sichvoge sichvoge added the bug label Apr 14, 2016
KonstantinSviridov added a commit that referenced this issue Apr 15, 2016
#46
#47
[RAML0.8]returning "displayName" to Trait
@KonstantinSviridov
Copy link
Contributor

Actually, according to js team tests, in RAML 0.8 body does have description:
https://github.com/mulesoft-labs/raml-parsers-functional-tests/blob/master/test/specs/regressions.js#L1070-L1081

@sichvoge
Copy link
Contributor Author

sichvoge commented Apr 19, 2016

OK, isn't that part of the type declaration? The value of body is defined as a map where each key represents the media type and the value is a type declaration. Looking at the available facets for a type declaration; description is part of that.

For me that means description does not have to be declared explicitly inside the body node. Can you clarify that with @petrochenko-pavel-a

@KonstantinSviridov
Copy link
Contributor

@sichvoge I would say that description CAN NOT be defined as direct property of body node (unless we have default mediaType defined). It can be defined as property of particular body:

body:
  application/json:
    description:

In RAML 1.0 definition system everything is ok as TypeDefinition does have description property.

In RAML 0.8 we must create description property for BodyLike.

@sichvoge
Copy link
Contributor Author

Agree to 0.8. And actually this ticket was about 0.8 initially. Sorry! :D

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

No branches or pull requests

2 participants