Coder Social home page Coder Social logo

raml-serverless's Introduction

Hi there ๐Ÿ‘‹, my name is Andrew

I'm a technologist, software engineer, writer, and architect. I wear a lot of hats.

raml-serverless's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

raml-serverless's Issues

Cannot read property 'split' of undefined

Getting the following error:

$ sls raml
 
  Type Error ---------------------------------------------
 
  Cannot read property 'split' of undefined

Reproduce:

  1. Install npm install --save raml-serverless
  2. Add raml-serverless to your serverless.yml
$ git diff serverless.yml
 plugins:
   - serverless-python-requirements
+  - raml-serverless
  1. sls raml > docs.raml

Node version: v6.10.1
Serverless version 1.18.0

Put all unrecognized properties under "custom"

If a RAML property cannot be understood it should be put under custom so that if a RAML file is generated from the serverless.yml file later, it will have the same properties.

Example:

custom:
  documentation:
    raml:
      title: My Awesome API

Populate baseUri

Populate baseUri automatically with the root endpoint of the API gateway deployment.

How do you document a URI parameter?

RAML has a mechanism to document URI parameters for a call. I can not figure out how to put this documentation into the server.yml file in such a way that it will show up in the correct spot in the output RAML file. Am I missing something, or does raml-serverless not yet support this?

In the RAML file, the uriParameters: tag should be between the path and the HTTP action. However, by the time we are specifying the "documentation:\n raml:" tag in our server.yml file, we are already specifying information related to the method itself.

If raml-serverless can't do this then please consider this a feature request.

Generate serverless HTTP event from RAML

Take a RAML file as input and generate a Serverless HTTP events for every endpoint in the RAML. For now they can all be under a single function and the user can split it up as necessary.

This includes putting all properties that don't directly translate into Serverless under the documentation: raml: section of the HTTP event.

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.