-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtd-security-body-name-json-pointer.json
More file actions
43 lines (43 loc) · 1.46 KB
/
td-security-body-name-json-pointer.json
File metadata and controls
43 lines (43 loc) · 1.46 KB
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
{
"title": "td-security-body-name-json-pointer",
"description": "When used in the context of a body security information location, the value of name MUST be in the form of a JSON pointer [[!RFC6901]] relative to the root of the input DataSchema for each interaction it is used with.",
"$schema": "http://json-schema.org/draft-07/schema#",
"is-complex": true,
"type": "object",
"properties": {
"securityDefinitions": {
"type": "object",
"minProperties": 1,
"additionalProperties": {
"$ref": "#/definitions/securityScheme"
}
}
},
"required": ["securityDefinitions"],
"additionalProperties": true,
"definitions": {
"securityScheme": {
"if": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"enum": ["apikey", "basic", "bearer", "digest"]
},
"in": {
"type": "string",
"enum": ["body"]
},
"name": {
"type": "string",
"format": "json-pointer"
}
},
"required": ["in", "scheme", "name"]
},
"then": {
"const": "td-security-body-name-json-pointer=pass"
}
}
}
}