how to Allow leading zero's, I am getting the below exception,
Caused by: org.springframework.core.codec.DecodingException: JSON decoding error: Invalid numeric value: Leading zeroes not allowed; nested exception is com.fasterxml.jackson.core.JsonParseException: Invalid numeric value: Leading zeroes not allowed
 at [Source: (org.springframework.core.io.buffer.DefaultDataBuffer$DefaultDataBufferInputStream); line: 4, column: 21]
the swagger definition for the amount with Regex,
 "amount": {
      "type": "number",
      "description": "The amount of tnx",
      "pattern" : "^-?[0-9]*(\\.([0-9]{1,2}))?$",
      "example" : "9999.99"
    }, 
Working test: "amount": 6.81
not Working test with exception: "amount": 06.81
