JSON Validation?
Comments
-
[font=Calibri, sans-serif]Does Decisions do input JSON validation? Can this be enabled/disabled on a case-by-case basis?[/font]
-
[font=Roboto, Arial, Helvetica, sans-serif]If the JSON sent to a flow via POST is malformed, the flow itself will not notice it. There is a system default rule named Test JSON Is Valid that can validate JSON text, however. If the input of a flow is found to be invalid with this rule, its false path can have a Throw API Exception step send a response code and some specified error message - e.g. 400: invalid JSON: asdf. (FlowWithJSONValidation)[/font]
[font=Roboto, Arial, Helvetica, sans-serif]
[/font]
[font=Roboto, Arial, Helvetica, sans-serif]If you want to validate some inputs [i]but not all[/i], you can [/font]achieve this by adding steps to check on the values of all other fields in a JSON input except those that do not need to be validated. (ADifferentApproachToJSONValidation)I have attached two example flows for these cases.
Howdy, Stranger!
Categories
- 4.2K All Categories
- 64 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 261 Administration
- 212 Portal
- 490 General Q & A
- 694 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 76 Lunch And Learn Questions