64 lines
1.8 KiB
JSON
64 lines
1.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://example.com/oled-display-list.schema.json",
|
|
"title": "OLED Display List",
|
|
"description": "A schema for a list of OLED displays with their properties.",
|
|
"type": "object",
|
|
"properties": {
|
|
"displays": {
|
|
"type": "array",
|
|
"description": "A list of OLED displays suitable for ESP-32 with buttons.",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model_name": {
|
|
"type": "string",
|
|
"description": "The model name of the OLED display."
|
|
},
|
|
"link": {
|
|
"type": "string",
|
|
"description": "URL to the product page.",
|
|
"format": "uri"
|
|
},
|
|
"price": {
|
|
"type": "number",
|
|
"description": "Price in USD.",
|
|
"minimum": 0
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"description": "Type of the display (e.g., I2C, SPI)."
|
|
},
|
|
"features": {
|
|
"type": "string",
|
|
"description": "Key features of the display."
|
|
},
|
|
"pros": {
|
|
"type": "string",
|
|
"description": "Advantages of using this display."
|
|
},
|
|
"cons": {
|
|
"type": "string",
|
|
"description": "Disadvantages of using this display."
|
|
},
|
|
"brand": {
|
|
"type": "string",
|
|
"description": "Brand of the display."
|
|
}
|
|
},
|
|
"required": [
|
|
"model_name",
|
|
"link",
|
|
"price",
|
|
"type",
|
|
"features",
|
|
"pros",
|
|
"cons"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"displays"
|
|
]
|
|
} |