@backstage/backend-openapi-utils 0.1.2 → 0.1.3-next.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 +9 -0
- package/dist/index.d.ts +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @backstage/backend-openapi-utils
|
|
2
2
|
|
|
3
|
+
## 0.1.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2067689: Internal updates due to `json-schema-to-ts`
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-plugin-api@0.6.10-next.0
|
|
10
|
+
- @backstage/errors@1.2.3
|
|
11
|
+
|
|
3
12
|
## 0.1.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSONSchema, FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
import { ReferenceObject, OpenAPIObject, ContentObject, RequestBodyObject, ResponseObject, ParameterObject, SchemaObject } from 'openapi3-ts';
|
|
3
3
|
import core from 'express-serve-static-core';
|
|
4
4
|
import { Router, RequestHandler, Express } from 'express';
|
|
@@ -222,7 +222,7 @@ type TuplifyUnion<T, L = LastOf<T>, N = [T] extends [never] ? true : false> = tr
|
|
|
222
222
|
* @public
|
|
223
223
|
*/
|
|
224
224
|
type ConvertAll<T extends ReadonlyArray<unknown>> = {
|
|
225
|
-
[Index in keyof T]: T[Index] extends
|
|
225
|
+
[Index in keyof T]: T[Index] extends JSONSchema ? FromSchema<T[Index]> : T[Index];
|
|
226
226
|
} & {
|
|
227
227
|
length: T['length'];
|
|
228
228
|
};
|
|
@@ -305,7 +305,7 @@ type DocParameters<Doc extends RequiredDoc, Path extends Extract<keyof Doc['path
|
|
|
305
305
|
/**
|
|
306
306
|
* @public
|
|
307
307
|
*/
|
|
308
|
-
type ParameterSchema<Doc extends RequiredDoc, Schema extends ImmutableParameterObject['schema']> = SchemaRef<Doc, Schema> extends infer R ? R extends ImmutableSchemaObject ? R extends
|
|
308
|
+
type ParameterSchema<Doc extends RequiredDoc, Schema extends ImmutableParameterObject['schema']> = SchemaRef<Doc, Schema> extends infer R ? R extends ImmutableSchemaObject ? R extends JSONSchema ? FromSchema<R> : never : never : never;
|
|
309
309
|
/**
|
|
310
310
|
* @public
|
|
311
311
|
*/
|
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.1.
|
|
4
|
+
"version": "0.1.3-next.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"postpack": "backstage-cli package postpack"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@backstage/cli": "^0.25.
|
|
33
|
+
"@backstage/cli": "^0.25.2-next.0",
|
|
34
34
|
"supertest": "^6.1.3"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@backstage/backend-plugin-api": "^0.6.
|
|
40
|
+
"@backstage/backend-plugin-api": "^0.6.10-next.0",
|
|
41
41
|
"@backstage/errors": "^1.2.3",
|
|
42
42
|
"@types/express": "^4.17.6",
|
|
43
43
|
"@types/express-serve-static-core": "^4.17.5",
|