Meet KaaIoT at MWC25 Barcelona
March 3-6, 2025 Fira Gran Via, Barcelona
Kaa Documentation

Configuration Repository Schema

Endpoint Configuration Schema is a tool that helps validate your JSON configurations that you manage with Configuration Repository, ensuring that your devices will receive the data they expect during the configuration updates.
If you are not familiar with the Configuration Repository feature yet, refer to the Overview section to learn more about it.

Use Case

For demonstration purposes, let’s apply the configuration from the previous tutorial.

Solution

If we change the parameters and the data turns out to be something the device doesn’t expect, it likely won’t work.
To avoid this, we can use Endpoint Configuration Schema to validate the configuration.

How to apply Endpoint Configuration Schema

In the sidebar, navigate to Device Management -> Applications -> your application name -> ECR.
Path to ECR

In the opened menu, there are two windows: JSON view and Schema view. Both serve the same purpose, but in the JSON view, you provide raw code for your configuration, while in the Schema view, you can fill out a form.
Navigate to the Schema view tab.

Add the nighttime_temp and daytime_temp to the schema and save it.
Schema view

After saving, you’ll see that a new JSON was generated in JSON view tab.
Now, navigate back to the Solution Dashboard and try changing the thermostat configuration.
As you’ll notice, the schema will validate your input and show an error if it’s incorrect.

Solution Validation Error

Schema Options

  • additionalProperties: To restrict additional, non-permitted fields in the schema, you can add the additionalProperties property and set it to false in the core of your object schema.

Additional Properties Option

  • Is endpoint configuration schema required checkbox: Available in your app name -> Base Configuration -> ECR. If set to True, it will prevent sending any configurations if the Endpoint Configuration Schema is empty.

Conclusion

In this tutorial, we explored the Endpoint Configuration Schema, a tool for validating JSON configurations and maintaining consistency in device setups.