Files
openapi-generator/samples/client/petstore/ruby/docs/FormatTest.md
William Cheng 9377dbca56 Add "decimal" support (#7808)
* rename BigDecimal to decimal

* add isDecimal

* fix tests

* minor fixes

* fix mapping, update doc

* update test spec

* update c# samples
2020-11-02 21:31:32 +08:00

1.8 KiB

Petstore::FormatTest

Properties

Name Type Description Notes
integer Integer [optional]
int32 Integer [optional]
int64 Integer [optional]
number Float
float Float [optional]
double Float [optional]
decimal Decimal [optional]
string String [optional]
byte String
binary File [optional]
date Date
date_time Time [optional]
uuid String [optional]
password String
pattern_with_digits String A string that is a 10 digit number. Can have leading zeros. [optional]
pattern_with_digits_and_delimiter String A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [optional]

Code Sample

require 'Petstore'

instance = Petstore::FormatTest.new(integer: null,
                                 int32: null,
                                 int64: null,
                                 number: null,
                                 float: null,
                                 double: null,
                                 decimal: null,
                                 string: null,
                                 byte: null,
                                 binary: null,
                                 date: null,
                                 date_time: null,
                                 uuid: 72f98069-206d-4f12-9f12-3d1e525a8e84,
                                 password: null,
                                 pattern_with_digits: null,
                                 pattern_with_digits_and_delimiter: null)