{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "WINNF v1.1 cpiSignatureData object",
    "description": "CPI signed data provided by CBSD in registration request",
    "type": "object",
    "required": [
        "fccId",
        "cbsdSerialNumber",
        "installationParam",
        "professionalInstallerData"
    ],
    "additionalProperties": false,
    "properties": {
        "fccId": {
            "type": "string",
            "maxLength": 128,
            "description": "The certification FCC ID for the hardware"
        },
        "cbsdSerialNumber": {
            "type": "string",
            "maxLength": 128,
            "description": "Unique identifier for the CBSD chosen by the manufacturer"
        },
        "installationParam": {
            "$ref": "#/definitions/installationParam"
        },
        "professionalInstallerData": {
            "$ref": "#/definitions/professionalInstallerData"
        }
    },
    "definitions": {
        "professionalInstallerData": {
            "type": "object",
            "description": "Data identifying the CPI vouching for the installation parameters in this object",
            "required": [
                "cpiId",
                "cpiName",
                "installCertificationTime"
            ],
            "additionalProperties": false,
            "properties": {
                "cpiId": {
                    "type": "string",
                    "maxLength": 256,
                    "description": "ID of CPI providing information to SAS"
                },
                "cpiName": {
                    "type": "string",
                    "maxLength": 256,
                    "description": "Human-readable name of the CPI providing information to the SAS"
                },
                "installCertificationTime": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "UTC date/time at which CPI certified this object.  Format:  YYYY-MM-DDThh:mm:ssZ"
                }
            }
        },
        "installationParam": {
            "type": "object",
            "description": "Air interface parameter for a CBSD",
            "required": [
                "latitude",
                "longitude",
                "height",
                "heightType",
                "indoorDeployment",
                "antennaGain",
                "antennaAzimuth",
                "antennaDowntilt",
                "antennaBeamwidth"
            ],
            "additionalProperties": false,
            "properties": {
                "latitude": {
                    "type": "number",
                    "description": "Latitude in WGS84 coordinates, provided in decimal degrees",
                    "minimum": -90,
                    "maximum": 90
                },
                "longitude": {
                    "type": "number",
                    "description": "Longitude in WGS84 coordinates, provided in decimal degrees",
                    "minimum": -180,
                    "maximum": 180
                },
                "height": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000,
                    "description": "Height of CBSD antenna, provided in meters. See heightType for interpretation."
                },
                "heightType": {
                    "type": "string",
                    "enum": [
                        "AMSL",
                        "AGL"
                    ],
                    "description": "The reference for the height parameter. AMSL indicates the height is measured relative to mean sea level. AGL indicates the height is measured relative to local ground level at latitude, longitude."
                },
                "horizontalAccuracy": {
                    "type": "number",
                    "description": "A measurement in meters of the horizontal accuracy of the indicated location.",
                    "minimum": 0,
                    "maximum": 50
                },
                "verticalAccuracy": {
                    "type": "number",
                    "description": "A measurement in meters of the vertical accuracy of the indicated location.",
                    "minimum": 0,
                    "maximum": 3
                },
                "indoorDeployment": {
                    "type": "boolean",
                    "description": "True if the equipment is installed indoors, false if outdoors"
                },
                "eirpCapability": {
                    "type": "number",
                    "description": "Maximum EIRP of the CBSD in units of dBm/10MHz.",
                    "minimum": -127,
                    "maximum": 47
                },
                "antennaAzimuth": {
                    "type": "number",
                    "description": "Heading of antenna azimuth relative to true north, provided in decimal degrees. Positive indicates easterly.",
                    "minimum": 0,
                    "maximum": 359
                },
                "antennaDowntilt": {
                    "type": "number",
                    "description": "Downtilt of the antenna (vertically down is positive) in decimal degrees.",
                    "minimum": -90,
                    "maximum": 90
                },
                "antennaGain": {
                    "type": "number",
                    "description": "Maximum gain in dB of the antenna along the boresight",
                    "minimum": -127,
                    "maximum": 128
                },
                "antennaBeamwidth": {
                    "type": "number",
                    "description": "Beamwidth to 3dB points of the antenna coverage pattern, provided in decimal degrees and measured at the horizon. A value of 360 indicates an omni-directional antenna.",
                    "minimum": 0,
                    "maximum": 360
                },
                "antennaModel": {
                    "type": "string",
                    "maxLength": 128,
                    "description": "If an external antenna is used, the model of the antenna is optionally provided in this field."
                }
            }
        }
    }
}