Bug 1451767 - Add missing type in events API schema examples from the WebExtensions docs.
MozReview-Commit-ID: Job5tZbiwWm
--- a/toolkit/components/extensions/docs/events.rst
+++ b/toolkit/components/extensions/docs/events.rst
@@ -10,16 +10,17 @@ The definition for a simple event looks
.. code-block:: json
[
{
"namespace": "myapi",
"events": [
{
"name": "onSomething",
+ "type": "function",
"description": "Description of the event",
"parameters": [
{
"name": "param1",
"description": "Description of the first callback parameter",
"type": "number"
}
]
@@ -121,16 +122,17 @@ the ``extraParameters`` property. For e
.. code-block:: json
[
{
"namespace": "myapi",
"events": [
{
"name": "onSomething",
+ "type": "function",
"description": "Description of the event",
"parameters": [
{
"name": "param1",
"description": "Description of the first callback parameter",
"type": "number"
}
],
@@ -181,16 +183,17 @@ This can be defined in the schema with t
.. code-block:: json
[
{
"namespace": "myapi",
"events": [
{
"name": "onSomething",
+ "type": "function",
"description": "Description of the event",
"parameters": [
{
"name": "param1",
"description": "Description of the first callback parameter",
"type": "number"
}
],