Comments (4)
@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.
@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.
@javok002,
in my case,
before applying suggestion:
after applying suggestion:
So, once again, i need following info(or at least most of that):
- version of your OS.
- version of your Atom(if you talking about Atom).
- version of your Api-Workbench(if you talking about Api-Workbench).
- list of installed Atom packages.
Also, if it possible, please attach screenshots or, even better, gif animation of issue reproduction.
from raml-suggestions.
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)
- Not valid type suggestion when using library that use another library HOT 2
- The following line to an example has no suggestions HOT 7
- It suggest options for a node that already have a node HOT 2
- allowedTargets facet should not show up in types definition HOT 1
- Inherited field from types defined in fragments are not suggested HOT 1
- Does not suggest inherited field from types defined in fragments HOT 1
- Improvement: insertText for directories should include a slash `/` at the end HOT 2
- Having a `defaultMedia`, it does not suggest `type` or `properties` under a response body HOT 1
- Suggestions after certain code are not correct HOT 1
- No suggestion is returned when having `/:`
- Include external file suggestion HOT 2
- No enum completion for samples
- No enum completion for annotation instances
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raml-suggestions.