Git Product home page Git Product logo

Comments (3)

usarid avatar usarid commented on August 23, 2024

Hmm, I just tried (in the APi Designer, which has the console embedded in it) and it's doing just fine:

#%RAML 0.8
title: Test
/:
  get:
    description: |
      The GET method
    responses:
      200:
        description: |
          The response to the GET method

What error are you getting, and could you attach the entire RAML file?

from api-console.

egiraudy avatar egiraudy commented on August 23, 2024

sorry, i should have been more accurate...

The parser fails when the description is under body or under the media-type:

Here is the error
"context":"while validating body","context_mark":null,"message":"property:
'description' is invalid in a body"

And here is an example:

#%RAML 0.8
title: Test
/:
get:
responses:
200:
body:
description: |
fail 1
application/xml:
description: |
fail 2

Also, after re-reading the spec, it is not clear if this is allowed of if
the example in the spec is wrong...

Thanks!

On Wed, Jul 9, 2014 at 9:21 AM, Uri Sarid [email protected] wrote:

Hmm, I just tried (in the APi Designer, which has the console embedded in
it) and it's doing just fine:

#%RAML 0.8title: Test/:
get:
description: |
The GET method
responses:
200:
description: |
The response to the GET method

What error are you getting, and could you attach the entire RAML file?


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

from api-console.

sichvoge avatar sichvoge commented on August 23, 2024

That is definitely not valid RAML and I can't find the example in the spec anymore. Closing it for now

from api-console.

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.