Validate TSL model data
After you define a Thing Specification Language (TSL) model for a product in IoT Platform, the platform validates the data that devices report. This validation is based on the TSL model definition and the configured validation method. This topic describes the three types of data validation.
For more information about data parsing, see Data parsing scripts.
| Type | Description | Scope |
| Strong validation | Validates all fields in the data that a device reports. Only data that passes validation is forwarded. Data that passes validation appears on the TSL Data tab of the Device Details page for the device in the IoT Platform console. Data that fails validation is not displayed. | For products created before October 14, 2020, strong validation is the only available method. |
| Weak validation | Validates only the `identifier` and `dataType` fields in the data that a device reports. All data is forwarded. Data that passes validation appears on the TSL Data tab of the Device Details page for the device in the IoT Platform console. Data that fails validation is not displayed. You can view the data that failed validation in the checkFailedData parameter of the forwarded data. For more information, see Data formats. | For products created from October 14, 2020, to December 31, 2020 (inclusive), you can no longer change the current validation method. When you create a product on or after January 1, 2021, you must select either weak validation or no validation. After the product is created, you cannot change the validation method. For specific instructions, see Create a product. |
| No validation | Does not validate any data that a device reports. All data is forwarded. The TSL model data is used as follows:
|