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);

No comments:

Post a Comment

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...