Code Monkey home page Code Monkey logo

Comments (4)

dreamflyer avatar dreamflyer commented on June 30, 2024

@javok002, can not to reproduce, please provide more info, including at least your OS version and contents of '/exchange_modules/mulesoft-720/e2etrait_j3aczpxg882/1.0.0/trait.raml' file.

from raml-suggestions.

leckoluck avatar leckoluck commented on June 30, 2024

@dreamflyer I think that the problem is that the suggest after "is" is suggesting "secured" and it leaves an file with an error, because "is" expect to be an array:

#%RAML 1.0
title: testConsumeFragment
traits: 
 secured: !include /exchange_modules/mulesoft-720/e2etrait_j3aczpxg882/1.0.0/trait.raml

/testResource:
  is:
#%RAML 1.0
title: testConsumeFragment
traits: 
 secured: !include /exchange_modules/mulesoft-720/e2etrait_j3aczpxg882/1.0.0/trait.raml

/testResource:
  is: secured

It should suggest:

#%RAML 1.0
title: testConsumeFragment
traits: 
 secured: !include /exchange_modules/mulesoft-720/e2etrait_j3aczpxg882/1.0.0/trait.raml

/testResource:
  is: [secured]

It works fine, if you have something like
is: [

the content of the trait is:

#%RAML 1.0 Trait
usage: Apply this to any method that needs to be secured
description: Some requests require authentication.

headers:
  access_token:
    displayName: token
    description: Access token
    example: "10"
    required: true
protocols: HTTP
queryParameters:
  name: string
responses:
  200:
    body:
      application/json:
        type: string
        examples:
          example1: SSSL
          example2: 1AA

from raml-suggestions.

dreamflyer avatar dreamflyer commented on June 30, 2024

@javok002,
in my case,
before applying suggestion:
screen shot 2017-08-22 at 6 56 51 pm
after applying suggestion:
screen shot 2017-08-22 at 6 56 59 pm

So, once again, i need following info(or at least most of that):

  1. version of your OS.
  2. version of your Atom(if you talking about Atom).
  3. version of your Api-Workbench(if you talking about Api-Workbench).
  4. list of installed Atom packages.

Also, if it possible, please attach screenshots or, even better, gif animation of issue reproduction.

from raml-suggestions.

jisoldi avatar jisoldi commented on June 30, 2024

We found that we where ignoring the extra property in the suggestion in the API designer, so it was not a bug.

from raml-suggestions.

Related Issues (14)

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.