@zuplo/lint-win32-x64 7.5.0 → 7.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "http://schemas.zuplo.com/policies.schema.json",
|
|
4
|
+
"title": "Policies Config File",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"policies": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
12
|
+
"$id": "http://schemas.zuplo.com/policy-configuration.schema.json",
|
|
13
|
+
"title": "Policy Configuration Fragment",
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["name", "policyType", "handler"],
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[0-9a-z-]+$"
|
|
21
|
+
},
|
|
22
|
+
"policyType": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"handler": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"module": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^\\$import\\([^ )]*?\\)$"
|
|
31
|
+
},
|
|
32
|
+
"export": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"options": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": ["module", "export"]
|
|
42
|
+
},
|
|
43
|
+
"options": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": true
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"corsPolicies": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": ["name", "allowedOrigins"],
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"properties": {
|
|
57
|
+
"name": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^[0-9a-z-]+$"
|
|
60
|
+
},
|
|
61
|
+
"allowCredentials": {
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
},
|
|
64
|
+
"maxAge": {
|
|
65
|
+
"type": "number"
|
|
66
|
+
},
|
|
67
|
+
"allowedOrigins": {
|
|
68
|
+
"oneOf": [
|
|
69
|
+
{
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"allowedMethods": {
|
|
81
|
+
"oneOf": [
|
|
82
|
+
{
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"enum": [
|
|
87
|
+
"GET",
|
|
88
|
+
"HEAD",
|
|
89
|
+
"POST",
|
|
90
|
+
"PUT",
|
|
91
|
+
"DELETE",
|
|
92
|
+
"CONNECT",
|
|
93
|
+
"OPTIONS",
|
|
94
|
+
"TRACE",
|
|
95
|
+
"PATCH"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"allowedHeaders": {
|
|
105
|
+
"oneOf": [
|
|
106
|
+
{
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"exposeHeaders": {
|
|
118
|
+
"oneOf": [
|
|
119
|
+
{
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "string"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|