-
Notifications
You must be signed in to change notification settings - Fork 17
/
not.json
49 lines (49 loc) · 1.08 KB
/
not.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"id": "not",
"summary": "Inverting a boolean",
"description": "Inverts a single boolean so that `true` gets `false` and `false` gets `true`.\n\nThe no-data value `null` is passed through and therefore gets propagated.",
"categories": [
"logic"
],
"parameters": [
{
"name": "x",
"description": "Boolean value to invert.",
"schema": {
"type": [
"boolean",
"null"
]
}
}
],
"returns": {
"description": "Inverted boolean value.",
"schema": {
"type": [
"boolean",
"null"
]
}
},
"examples": [
{
"arguments": {
"x": null
},
"returns": null
},
{
"arguments": {
"x": false
},
"returns": true
},
{
"arguments": {
"x": true
},
"returns": false
}
]
}