@backstage/repo-tools 0.8.0-next.0 → 0.8.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @backstage/repo-tools
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2bd291e: Adds a lint rule to `repo schema openapi lint` to enforce `allowReserved` for all parameters. To fix this, simply add `allowReserved: true` to your parameters, like so
|
|
8
|
+
|
|
9
|
+
```diff
|
|
10
|
+
/v1/todos:
|
|
11
|
+
get:
|
|
12
|
+
operationId: ListTodos
|
|
13
|
+
# ...
|
|
14
|
+
parameters:
|
|
15
|
+
- name: entity
|
|
16
|
+
in: query
|
|
17
|
+
+ allowReserved: true
|
|
18
|
+
schema:
|
|
19
|
+
type: string
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- cfdc5e7: Adds two new commands, `repo schema openapi fuzz` and `package schema openapi fuzz` for fuzzing your plugins documented with OpenAPI. This can help find bugs in your application code through the use of auto-generated schema-compliant inputs. For more information on the underlying library this leverages, take a look at [the docs](https://schemathesis.readthedocs.io/en/stable/index.html).
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/backend-common@0.21.7
|
|
28
|
+
- @backstage/config-loader@1.8.0
|
|
29
|
+
- @backstage/cli-node@0.2.5
|
|
30
|
+
- @backstage/catalog-model@1.4.5
|
|
31
|
+
- @backstage/cli-common@0.1.13
|
|
32
|
+
- @backstage/errors@1.2.4
|
|
33
|
+
|
|
34
|
+
## 0.8.0-next.1
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
- @backstage/backend-common@0.21.7-next.1
|
|
40
|
+
- @backstage/catalog-model@1.4.5
|
|
41
|
+
- @backstage/cli-common@0.1.13
|
|
42
|
+
- @backstage/cli-node@0.2.4
|
|
43
|
+
- @backstage/config-loader@1.8.0-next.0
|
|
44
|
+
- @backstage/errors@1.2.4
|
|
45
|
+
|
|
3
46
|
## 0.8.0-next.0
|
|
4
47
|
|
|
5
48
|
### Minor Changes
|
|
@@ -7,6 +7,7 @@ var fs = require('fs-extra');
|
|
|
7
7
|
var chalk = require('chalk');
|
|
8
8
|
var runner = require('./runner-CRAhuK8A.cjs.js');
|
|
9
9
|
var spectralRulesets = require('@stoplight/spectral-rulesets');
|
|
10
|
+
var spectralFunctions = require('@stoplight/spectral-functions');
|
|
10
11
|
var types = require('@stoplight/types');
|
|
11
12
|
var spectralFormatters = require('@stoplight/spectral-formatters');
|
|
12
13
|
var helpers = require('./helpers-Dd7PBM8s.cjs.js');
|
|
@@ -38,6 +39,16 @@ async function lint(directoryPath, config) {
|
|
|
38
39
|
const backstageRuleset = new spectralCore.Ruleset(
|
|
39
40
|
{
|
|
40
41
|
extends: [spectralRulesets.oas, ruleset__default.default],
|
|
42
|
+
rules: {
|
|
43
|
+
"allow-reserved-in-params": {
|
|
44
|
+
given: "$.paths..parameters[*]",
|
|
45
|
+
then: {
|
|
46
|
+
field: "allowReserved",
|
|
47
|
+
function: spectralFunctions.truthy
|
|
48
|
+
},
|
|
49
|
+
severity: "error"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
41
52
|
overrides: [
|
|
42
53
|
{
|
|
43
54
|
files: ["*"],
|
|
@@ -92,4 +103,4 @@ async function bulkCommand(paths = [], options) {
|
|
|
92
103
|
}
|
|
93
104
|
|
|
94
105
|
exports.bulkCommand = bulkCommand;
|
|
95
|
-
//# sourceMappingURL=lint-
|
|
106
|
+
//# sourceMappingURL=lint-BY2lPaTV.cjs.js.map
|
package/dist/index.cjs.js
CHANGED
|
@@ -94,7 +94,7 @@ function registerRepoCommand(program) {
|
|
|
94
94
|
"--strict",
|
|
95
95
|
"Fail on any linting severity messages, not just errors."
|
|
96
96
|
).action(
|
|
97
|
-
lazy(() => Promise.resolve().then(function () { return require('./cjs/lint-
|
|
97
|
+
lazy(() => Promise.resolve().then(function () { return require('./cjs/lint-BY2lPaTV.cjs.js'); }).then((m) => m.bulkCommand))
|
|
98
98
|
);
|
|
99
99
|
openApiCommand.command("test [paths...]").description("Test OpenAPI schemas against written tests").option("--update", "Update the spec on failure.").action(
|
|
100
100
|
lazy(() => Promise.resolve().then(function () { return require('./cjs/test-B-zlD07F.cjs.js'); }).then((m) => m.bulkCommand))
|
|
@@ -168,7 +168,7 @@ function lazy(getActionFunc) {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
var version = "0.8.0
|
|
171
|
+
var version = "0.8.0";
|
|
172
172
|
|
|
173
173
|
const main = (argv) => {
|
|
174
174
|
commander.program.name("backstage-repo-tools").version(version);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/repo-tools",
|
|
3
3
|
"description": "CLI for Backstage repo tooling ",
|
|
4
|
-
"version": "0.8.0
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
34
34
|
"@apisyouwonthate/style-guide": "^1.4.0",
|
|
35
|
-
"@backstage/backend-common": "^0.21.7
|
|
35
|
+
"@backstage/backend-common": "^0.21.7",
|
|
36
36
|
"@backstage/catalog-model": "^1.4.5",
|
|
37
37
|
"@backstage/cli-common": "^0.1.13",
|
|
38
|
-
"@backstage/cli-node": "^0.2.
|
|
39
|
-
"@backstage/config-loader": "^1.8.0
|
|
38
|
+
"@backstage/cli-node": "^0.2.5",
|
|
39
|
+
"@backstage/config-loader": "^1.8.0",
|
|
40
40
|
"@backstage/errors": "^1.2.4",
|
|
41
41
|
"@manypkg/get-packages": "^1.1.3",
|
|
42
42
|
"@microsoft/api-documenter": "^7.22.33",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"yaml-diff-patch": "^2.0.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@backstage/backend-test-utils": "^0.3.7
|
|
68
|
-
"@backstage/cli": "^0.26.3
|
|
67
|
+
"@backstage/backend-test-utils": "^0.3.7",
|
|
68
|
+
"@backstage/cli": "^0.26.3",
|
|
69
69
|
"@backstage/types": "^1.1.1",
|
|
70
70
|
"@types/is-glob": "^4.0.2",
|
|
71
71
|
"@types/node": "^18.17.8",
|