schema.common.AbstractPort.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"portIdentifier": {
"description": "A port identifier following the convention of http://microformats.org/wiki/hcard",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"portType": {
"$ref": "#/definitions/portType"
}
},
"required": [
"id",
"portType"
]
},
"abstractPort": {
"description": "A Port following the convention of http://microformats.org/wiki/hcard",
"type": "object",
"extends": {
"$ref": "#/definitions/portIdentifier"
},
"properties": {
"enabled": {
"type": "boolean"
},
"portIdentifier": {
"type": "string"
},
"label": {
"type": "string"
},
"inactive": {
"type": "boolean"
},
"error": {
"type": "string"
}
},
"required": [
"id"
]
},
"portType": {
"description": "A port type following the convention of http://microformats.org/wiki/hcard",
"type": "string",
"enum": [
"SWITCH",
"LIGHT",
"SERVO",
"SOUND",
"MOTOR",
"ANALOGOUT",
"BACKLIGHT",
"SWITCHPAIR",
"INPUT",
"FEEDBACK"
],
"javaEnums": [
{
"name": "SWITCHPORT"
}, {
"name": "LIGHTPORT"
}, {
"name": "SERVOPORT"
}, {
"name": "SOUNDPORT"
}, {
"name": "MOTORPORT"
}, {
"name": "ANALOGPORT"
}, {
"name": "BACKLIGHTPORT"
}, {
"name": "SWITCHPAIRPORT"
}, {
"name": "INPUTPORT"
}, {
"name": "FEEDBACKPORT"
}
]
},
"portCountType": {
"description": "A portCount type following the convention of http://microformats.org/wiki/hcard",
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"$ref": "#/definitions/portType"
},
"value": {
"type": "integer"
}
}
}
}
}