POST body required field not properly evaluated

Wappler Version : 4.6.3
Operating System :
Server Model: node
Database Type:
Hosting Type:

Expected behavior

When sending a POST method request to an API (server workflow), using a raw json body, a required NUMERIC field should pass validation.

Actual behavior

The API reports that the field is required

How to reproduce

Setup a basic API with a required field:

Using Postman, post as shown:

The above did not recognize “required_field” as it was not surrounded by quotes.

However this does work because the value 123 is enclosed in quotes:

1 Like

bump…still an issue in 5.1.1

The validation only validates form data, forms send values only as strings and that is what the validator expects.