Code Monkey home page Code Monkey logo

raml-object-to-raml's Issues

Addin Trait to method passing the parameters

I am trying to add an "is" statement with reference to a trait and pass parameters. Currently have no reference how to do that, the best result i was able to get is:

get:
    is:
      - 2222:
          VarName1: varParam1
          VarName2: varParam2

in RAML docs it should look like

get:
    is: [ 2222: { VarName1: varParam1,  VarName2: varParam2} ]

i didn't find any tests for this functionality, there is only one test where trait is simply referenced by name.

Inserting any kind of "!include" statemenets apear quoted

I am not sure if that's the issue or its meant to be so, but i need to make some include statements and they are quoted, like so:

example: "!include myTextFile.txt"

is there a standard way of avoiding that?

i found that inside stringify.js file there is a list of characters which flag string to be quoted if found inside and exclamation mark is one of those. So if i just comment out

QUOTED_CHARACTERS[0x21] = true;

then it parses include statement without quotes.

Thanks in advance

Resource description is missing

Hi!

Currently description of particular resource is missing. Could you add to lib/sanitize/resources.js this code:

if (is.string(resource.description) || is.object(resource.description)) {
  child.description = resource.description;
}

Thanks!

Luke

is: [] not found in the *.raml file

Object:

resources: 
   [ { is: [Object],
       uriParameters: [Object],
       relativeUri: '/test/',
       methods: [Object],
       ...

In this case is: [blabla] will not appear in the *.raml file. Would you be so kind to fix it?

Cheers,

Luke

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.