RackHD/on-http

View on GitHub
static/schemas/obms/panduit-obm-service.json

Summary

Maintainability
Test Coverage
{
    "title": "panduit-obm-service",
    "definitions": {
        "ObmBase": {
            "description": "Panduit OBM settings",
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "nodeId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                },
                "config": {
                    "type": "object",
                    "properties": {
                        "host": {
                            "description": "Host address",
                            "type": "string"
                        },
                        "community": {
                            "description": "Community",
                            "type": "string"
                        },
                        "cyclePassword": {
                            "description": "Cycle password",
                            "type": "string"
                        },
                        "pduOutlets": {
                            "type": "array",
                            "properties": {
                                "host": {
                                    "type": "string"
                                },
                                "community": {
                                    "type": "string"
                                },
                                "cyclePassword": {
                                    "type": "string"
                                },
                                "pduNumber": {
                                    "type": "integer"
                                },
                                "outletNumber": {
                                    "type": "integer"
                                }
                            },
                            "required": ["host", "community", "cyclePassword", "pduNumber", "outletNumber"]
                        }
                    },
                    "required": ["host", "community", "cyclePassword", "pduOutlets"]
                }
            }
        },
        "ObmPatch": {
            "type": "object",
            "allOf": [
                {"$ref": "#/definitions/ObmBase"}
            ]
        },
        "Obm": {
            "type": "object",
            "allOf": [
                {"$ref": "#/definitions/ObmBase"},
                {"required": ["nodeId", "service", "config"]}
            ]
        }
    }
}