Code Monkey home page Code Monkey logo

convert-json-to-raml-datatype's Introduction

Convert JSON to RAML DataType

Functionality overview

This project is a website that helps in creating RAML data type schemas.

Getting started

You can view a live demo over at https://jonathanfiss.github.io/convert-json-to-raml-datatype/

To get the frontend running locally:

  • Clone this repo
  • npm install to install all dependencies
  • npm run dev to start the local server

convert-json-to-raml-datatype's People

Contributors

jonathanfiss avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

barfour-kyei

convert-json-to-raml-datatype's Issues

More than 1 dataType

Hellow, this is my first issue in GitHub, sorry if its a bit messy.

Im using this tool for helping me creating dataType, iv found a bug while forming a dataType where 1 field have more than 1 dataType. Let me show you a example.

I will use this Json

{
   "additionalInformation":[
      {
         "attribute":"marcaRemesadora",
         "value":"DWU"
      },
      {
         "attribute":"accountType",
         "value":"SAVINGS"
      },
      {
         "atribute":"rate",
         "value":1
      }
   ]
}

This is the result that it gives me

#%RAML 1.0 DataType 
type: object
properties:
  additionalInformation:
    type: array
    items:
      type: object
      properties:
        attribute:
          type: string
          example: marcaRemesadora
        value:
          type:
            - string
            - integer
          example: DWU
        atribute:
          type: string
          example: rate

If i put this in Design Center it get an error

Captura desde 2023-04-25 13-05-24

Iv found a way to fix it

Captura desde 2023-04-25 13-06-14

Il post here the code if you need it

#%RAML 1.0 DataType 
type: object
properties:
  additionalInformation:
    type: array
    items:
      type: object
      properties:
        attribute:
          type: string
          example: marcaRemesadora
        value:
          type:
            - string | integer
          example: DWU
        atribute:
          type: string
          example: rate

Hope this helps you. Thanks a lot for the tool it helps reducing my time whille creating a raml.

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.