violet_rails icon indicating copy to clipboard operation
violet_rails copied to clipboard

integer with optional decimal in API form

Open donrestarone opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

currently there is no way to enforce integers + decimals in API forms (we can enforce numbers, but not decimals)

Describe the solution you'd like Screen Shot 2022-08-17 at 7 53 30 PM

Screen Shot 2022-08-17 at 7 55 57 PM

donrestarone avatar Aug 17 '22 23:08 donrestarone

@donrestarone Let me know if this regex-pattern works. \d+(\.\d+)?

alis-khadka avatar Aug 24 '22 02:08 alis-khadka

@alis-khadka that worked! Thanks

donrestarone avatar Aug 24 '22 09:08 donrestarone