2022-01-09 08:58:28 +01:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-02-27 01:08:55 +01:00
|
|
|
"_comment": {
|
2022-01-09 08:58:28 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-02-27 01:08:55 +01:00
|
|
|
"prefix": {
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[A-Z_a-z][0-9A-Z_a-z]*$"
|
|
|
|
},
|
2022-01-09 08:58:28 +01:00
|
|
|
"type": {
|
2022-02-27 01:08:55 +01:00
|
|
|
"type": "string",
|
|
|
|
"const": ["opaque"]
|
2022-01-09 08:58:28 +01:00
|
|
|
},
|
|
|
|
"location": {
|
2022-02-27 01:08:55 +01:00
|
|
|
"type": ["integer","string"],
|
|
|
|
"pattern": "^(0x|0X)?[a-fA-F0-9]+$"
|
2022-01-09 08:58:28 +01:00
|
|
|
},
|
2022-02-27 01:08:55 +01:00
|
|
|
"mbedtls/h_depend_on": {
|
2022-01-09 08:58:28 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"headers": {
|
|
|
|
"type": "array",
|
2022-02-27 01:08:55 +01:00
|
|
|
"items": {
|
2022-01-09 08:58:28 +01:00
|
|
|
"type": "string"
|
2022-02-27 01:08:55 +01:00
|
|
|
},
|
|
|
|
"minItems": 1,
|
|
|
|
"uniqueItems": true
|
2022-01-09 08:58:28 +01:00
|
|
|
},
|
|
|
|
"capabilities": {
|
|
|
|
"type": "array",
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"_comment": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-02-27 01:08:55 +01:00
|
|
|
"mbedtls/c_depend_on": {
|
2022-01-09 08:58:28 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"entry_points": {
|
|
|
|
"type": "array",
|
2022-02-27 01:08:55 +01:00
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["import_key", "export_key", "export_public_key",
|
|
|
|
"copy_key", "get_builtin_key"]
|
2022-01-09 08:58:28 +01:00
|
|
|
},
|
2022-02-27 01:08:55 +01:00
|
|
|
"minItems": 1,
|
|
|
|
"uniqueItems": true
|
2022-01-09 08:58:28 +01:00
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "object",
|
2022-02-27 01:08:55 +01:00
|
|
|
"patternProperties": {
|
|
|
|
"^[A-Z_a-z][0-9A-Z_a-z]*$": {
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[A-Z_a-z][0-9A-Z_a-z]*$"
|
2022-01-09 08:58:28 +01:00
|
|
|
}
|
|
|
|
},
|
2022-02-27 01:08:55 +01:00
|
|
|
"minItems": 1,
|
|
|
|
"uniqueItems": true
|
2022-01-09 08:58:28 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2022-02-27 01:08:55 +01:00
|
|
|
"entry_points"
|
2022-01-09 08:58:28 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"prefix",
|
|
|
|
"type",
|
|
|
|
"location",
|
|
|
|
"capabilities"
|
|
|
|
]
|
|
|
|
}
|