Showing posts with label swagger. Show all posts
Showing posts with label swagger. Show all posts

Tuesday, May 23, 2017

Swagger doesn't support decimal

As of version 7.10.0 using node.js the swagger doesn't support the decimal however it supports the number of type float of 32 bit, double of 64 bit but not decimal of 128 bit.

So you can declare as a field of type decimal as below..

  "amount" : {
          "type" : "number"


Then cast it to decimal like CAST(amount AS DECIMAL);

Thursday, March 9, 2017

WSDL to Swagger Generator

Generate JSON/YAML swaggers from a WSDL

Installation

  1. Install Node.js >= v6.0.0 (https://nodejs.org/en/)
  2. Clone the repo from SAMI-GIT
    git clone https://git.xyz.com/NAWM_Tools/wsdl-to-swagger.git
    cd wsdl-to-swagger
    
  3. Install dependencies
    npm install
    

Usage

This script takes two inputs: 1) input WSDL file, and 2) output file. The output file needs to end with .json or .yml.
Example:
node wsdl-to-swagger.js example.wsdl example.json
Swagger validation: http://editor.swagger.io/

Distributed Computing: A Guide to Comparing Data Between Hive Tables Using Spark

In big data, efficient data comparison is essential for ensuring data integrity and validating data migrations. Apache Spark, with its in-me...