Schema System
Overview
Example of a TEN Framework Schema
{
"api": {
"property": {
"exampleInt8": {
"type": "int8"
},
"exampleString": {
"type": "string"
}
},
"cmd_in": [
{
"name": "cmd_1",
"property": {
"foo": {
"type": "int8"
},
"bar": {
"type": "string"
}
},
"result": {
"property": {
"x": {
"type": "int8"
},
"y": {
"type": "string"
}
}
}
}
],
"cmd_out": [],
"data_in": [],
"data_out": [],
"video_frame_in": [],
"video_frame_out": [],
"audio_frame_in": [],
"audio_frame_out": []
}
}Design Principles of the TEN Framework Schema System
Defining Types in a TEN Schema
Primitive Types
Complex Types
Defining the TEN Schema for Properties
Example Property Schema
Corresponding TEN Schema
Defining the TEN Schema for Commands
Input Command Example
Corresponding TEN Schema
Defining Command Results
Defining the TEN Schema for Data, Video Frames, and Audio Frames
Manifest Schema Overview
Example manifest.json
manifest.jsonConclusion
Last updated