Skip to content

Commit

Permalink
schemas: fix minor errors in MQTT definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbonney committed Jun 12, 2019
1 parent 3b06acf commit 9808171
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions APIs/schemas/receiver_transport_params_mqtt.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes MQTT Receiver transport parameters. The constraints in this schema are minimum constraints, but may be further constrained at the constraints endpoint. MQTT receivers must support all parameters in this schema.",
"description": "Describes MQTT Receiver transport parameters. The constraints in this schema are minimum constraints, but may be further constrained at the constraints endpoint. MQTT Receivers must support all parameters in this schema.",
"title": "MQTT Receiver Transport Parameters",
"type": "array",
"items": {
Expand All @@ -16,7 +16,7 @@
"string",
"null"
],
"description": "Hostname or IP hosting the MQTT broker. The Receiver should provide an enum in the constraints endpoint, which should contain the available interface addresses. If the parameter is set to auto the Receiver should establish for itself which broker it should use, based on a discovery mechanism or its own internal configuration. A null value indicates that the receiver has not yet been configured.",
"description": "Hostname or IP hosting the MQTT broker. If the parameter is set to auto the Receiver should establish for itself which broker it should use, based on a discovery mechanism or its own internal configuration. A null value indicates that the Receiver has not yet been configured.",
"anyOf": [{
"pattern": "^auto$"
},
Expand Down Expand Up @@ -49,14 +49,14 @@
"string",
"null"
],
"description": "The topic which MQTT messages will be received from via the MQTT broker. A null value indicates that the receiver has not yet been configured."
"description": "The topic which MQTT messages will be received from via the MQTT broker. A null value indicates that the Receiver has not yet been configured."
},
"connection_status_broker_topic": {
"type": [
"string",
"null"
],
"description": "The topic used for MQTT status messages such as MQTT Last Will which are received via the MQTT broker. A null value indicates that the receiver has not yet been configured, or is not using a connection status topic."
"description": "The topic used for MQTT status messages such as MQTT Last Will which are received via the MQTT broker. A null value indicates that the Receiver has not yet been configured, or is not using a connection status topic."
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions APIs/schemas/sender_transport_params_mqtt.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"string",
"null"
],
"description": "Hostname or IP hosting the MQTT broker. The sender should provide an enum in the constraints endpoint, which should contain the available interface addresses. If the parameter is set to auto the sender should establish for itself which broker it should use, based on a discovery mechanism or its own internal configuration. A null value indicates that the sender has not yet been configured.",
"description": "Hostname or IP hosting the MQTT broker. If the parameter is set to auto the Sender should establish for itself which broker it should use, based on a discovery mechanism or its own internal configuration. A null value indicates that the Sender has not yet been configured.",
"anyOf": [{
"pattern": "^auto$"
},
Expand All @@ -39,7 +39,7 @@
"integer",
"string"
],
"description": "Destination port for MQTT traffic. If the parameter is set to auto the sender should establish for itself which broker it should use, based on a discovery mechanism or its own internal configuration.",
"description": "Destination port for MQTT traffic. If the parameter is set to auto the Sender should establish for itself which broker it should use, based on a discovery mechanism or its own internal configuration.",
"minimum": 1,
"maximum": 65535,
"pattern": "^auto$"
Expand All @@ -49,14 +49,14 @@
"string",
"null"
],
"description": "The topic which MQTT messages will be sent to on the MQTT broker. A null value indicates that the sender has not yet been configured."
"description": "The topic which MQTT messages will be sent to on the MQTT broker. A null value indicates that the Sender has not yet been configured."
},
"connection_status_broker_topic": {
"type": [
"string",
"null"
],
"description": "The topic which MQTT status messages such as MQTT Last Will are sent to on the MQTT broker. A null value indicates that the sender has not yet been configured, or is not using a connection status topic."
"description": "The topic which MQTT status messages such as MQTT Last Will are sent to on the MQTT broker. A null value indicates that the Sender has not yet been configured, or is not using a connection status topic."
}
}
}
Expand Down

0 comments on commit 9808171

Please sign in to comment.