All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.firmware.NodeFirmware.json Maven / Gradle / Ivy

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "A NodeFirmware following the convention of http://microformats.org/wiki/hcard",
    "type": "object",
    "properties": {
        "manufacturerId": { "type": "integer" },
        "productId": { "type": "integer" },
        "version": {  "$ref": "../VersionType.json#/definitions/versionType" },
        "firmwarePath": { "type": "string" },
        "firmwareDefinition" : { "$ref": "#/definitions/firmwareDefinitionType" }
    },
    "required": ["manufacturerId", "productId", "version"],
    
    "definitions": {
    	"firmwareDefinitionType": {
		    "description": "A FirmwareDefinition following the convention of http://microformats.org/wiki/hcard",
		    "type": "object",
		    "properties": {
		        "cvFilename": { 
		            "type": "array", 
		            "items": { 
			        	"type": "string" 
		            } 
		        },
		        "node": { 
		            "type": "array", 
		            "items": { 
		                "$ref" : "#/definitions/deviceNodeType"
		            } 
		        }
		    },
		    "required": ["cvFilename"]
    	},
    	"deviceNodeType": {
		    "description": "A DeviceNode following the convention of http://microformats.org/wiki/hcard",
		    "type": "object",
		    "properties": {
		        "comment": { "type": "string" },
		        "vid": { "type": "integer" },
		        "pid": { "type": "integer" },
		        "nodeText": { 
		            "type": "array", 
		            "items": { 
		                "$ref" : "#/definitions/firmwareNodeTextType"
		            } 
		        },
		        "node": { 
		            "type": "array", 
		            "items": { 
		                "$ref" : "#/definitions/firmwareNodeType"
		            } 
		        }
		    },
		    "required": ["filename", "destinationNumber"]
    	},
    	"firmwareNodeType": {
		    "description": "A FirmwareNode following the convention of http://microformats.org/wiki/hcard",
		    "type": "object",
		    "properties": {
		        "filename": { "type": "string" },
		        "destinationNumber": { "type": "integer" },
		        "nodeText": { 
		            "type": "array", 
		            "items": { 
		                "$ref" : "#/definitions/firmwareNodeTextType"
		            } 
		        }
		    },
		    "required": ["filename", "destinationNumber"]
    	},
    	"firmwareNodeTextType": {
		    "description": "A FirmwareNodeText following the convention of http://microformats.org/wiki/hcard",
		    "type": "object",
		    "properties": {
		        "lang": { "type": "string" },
		        "text" : { "type": "string" }
		    },
		    "required": ["lang", "text"]
    	}
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy