@backstage/backend-openapi-utils 0.0.2-next.1 → 0.0.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.
- package/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @backstage/backend-openapi-utils
|
|
2
2
|
|
|
3
|
+
## 0.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fe16bd39e83: Use permalinks for links including a line number reference
|
|
8
|
+
- 27956d78671: Adjusted README accordingly after the generated output now has a `.generated.ts` extension
|
|
9
|
+
- 021cfbb5152: Corrected resolution of parameter nested schema to use central schemas.
|
|
10
|
+
- 799c33047ed: Updated README to reflect changes in `@backstage/repo-tools`.
|
|
11
|
+
|
|
3
12
|
## 0.0.2-next.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package is meant to provide a typed Express router for an OpenAPI spec. Bas
|
|
|
8
8
|
|
|
9
9
|
### Configuration
|
|
10
10
|
|
|
11
|
-
1. Run `yarn --cwd <package-dir> backstage-cli package schema
|
|
11
|
+
1. Run `yarn --cwd <package-dir> backstage-cli package schema openapi generate` to translate your `src/schema/openapi.yaml` to a new Typescript file in `src/schema/openapi.generated.ts`. The command will try to execute both a lint and prettier step on the generated file, where applicable.
|
|
12
12
|
|
|
13
13
|
2. In your plugin's `src/service/createRouter.ts`,
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/backend-openapi-utils",
|
|
3
3
|
"description": "OpenAPI typescript support.",
|
|
4
|
-
"version": "0.0.2
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"postpack": "backstage-cli package postpack"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@backstage/cli": "^0.22.7
|
|
27
|
+
"@backstage/cli": "^0.22.7"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|