@zuplo/lint-darwin-arm64 7.15.9 → 7.15.11

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.
@@ -43,7 +43,7 @@
43
43
  }
44
44
  },
45
45
  "requiredPolicies": {
46
- "description": "Policies every route must include. Replaces the defaults from zuplo:strict and zuplo:security.",
46
+ "description": "Policies every route must include, by name. Replaces the defaults from zuplo:strict and zuplo:security.",
47
47
  "type": "array",
48
48
  "items": {
49
49
  "$ref": "#/$defs/requiredPolicy"
@@ -104,6 +104,11 @@
104
104
  "then": {
105
105
  "properties": {
106
106
  "breakingChanges": {
107
+ "properties": {
108
+ "enabled": true,
109
+ "baseline": true,
110
+ "severity": true
111
+ },
107
112
  "additionalProperties": false
108
113
  },
109
114
  "ignorePaths": {
@@ -115,10 +120,11 @@
115
120
  "items": {
116
121
  "properties": {
117
122
  "id": true,
118
- "policyTypes": true,
123
+ "policyName": true,
119
124
  "direction": true,
120
125
  "severity": true,
121
- "message": true
126
+ "message": true,
127
+ "policyTypes": true
122
128
  },
123
129
  "additionalProperties": false
124
130
  }
@@ -275,7 +281,7 @@
275
281
  "type": "string"
276
282
  },
277
283
  "functionOptions": {
278
- "description": "Options for the function. zuplo:requirePolicy takes policyTypes and direction.",
284
+ "description": "Options for the function. zuplo:requirePolicy takes policyName and direction.",
279
285
  "type": "object"
280
286
  }
281
287
  },
@@ -326,18 +332,25 @@
326
332
  "description": "A name for the requirement.",
327
333
  "type": "string"
328
334
  },
335
+ "policyName": {
336
+ "description": "The policy's name in config/policies.json. A route satisfies the requirement when its policy list for direction contains this name.",
337
+ "type": "string",
338
+ "minLength": 1
339
+ },
340
+ "direction": {
341
+ "description": "The route policy list to check.",
342
+ "enum": ["inbound", "outbound"],
343
+ "default": "inbound"
344
+ },
329
345
  "policyTypes": {
330
- "description": "Policy types that satisfy the requirement. \"api-key\" matches api-key-inbound.",
346
+ "description": "Deprecated: use policyName. Will be removed in an upcoming release.",
347
+ "deprecated": true,
331
348
  "type": "array",
332
349
  "items": {
333
350
  "type": "string"
334
351
  },
335
352
  "minItems": 1
336
353
  },
337
- "direction": {
338
- "enum": ["inbound", "outbound"],
339
- "default": "inbound"
340
- },
341
354
  "severity": {
342
355
  "enum": ["error", "warn"],
343
356
  "default": "error"
@@ -347,7 +360,14 @@
347
360
  "type": "string"
348
361
  }
349
362
  },
350
- "required": ["policyTypes"]
363
+ "oneOf": [
364
+ {
365
+ "required": ["policyName"]
366
+ },
367
+ {
368
+ "required": ["policyTypes"]
369
+ }
370
+ ]
351
371
  }
352
372
  }
353
373
  }
package/bin/version.txt CHANGED
@@ -1 +1 @@
1
- 7.15.9
1
+ 7.15.11
package/bin/zuplo-lint CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/bin/zuplo-lint
3
- size: 59251730 bytes
4
- sha256: 16d0e55afdfed2ac8c895c8f1af89df9ec322e7261b32b3e3c3cd982ceae0a1f
3
+ size: 59268610 bytes
4
+ sha256: 69a3cac89eb4f57634ce9076a13533fe1f8ea5521a239ce7b32c40668d864914
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/lint-darwin-arm64",
3
- "version": "7.15.9",
3
+ "version": "7.15.11",
4
4
  "description": "The darwin-arm64 binary for zuplo-lint, the Zuplo API linter.",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",