1.0.5 • Published 6 months ago

node-red-contrib-object-validation v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Node-RED node for validating JavaScript objects using the Validate.js library.

It allows the validation of JavaScript objects using a more user-friendly interface, without the need to write complex constraints in JSON format.

Inputs

: payload (object) : the payload of the message to publish.

Outputs

  1. Standard output : payload (object) : the standard output of the operation.

  2. Standard error : payload (string) : the standard error of the operation.

Details

To validate the same property of an object but with different constraints, you must add each constraint to the list of constraints each time you want to validate that property. You should note that for constraints like 'Equal to property', 'Regular Expression', 'Maximum Length', 'Minimum Length', 'Date', 'Phone', 'Credit Card', 'IP v4', 'IP v6', 'URL', the property values must strictly be of type 'string'. For the constraints 'In', 'Not In', the values are a JSON object ({ }) or an array ( ).

References

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago