@backstage/backend-openapi-utils 0.1.2 → 0.1.3-next.1

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,22 @@
1
1
  # @backstage/backend-openapi-utils
2
2
 
3
+ ## 0.1.3-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@0.6.10-next.1
9
+ - @backstage/errors@1.2.3
10
+
11
+ ## 0.1.3-next.0
12
+
13
+ ### Patch Changes
14
+
15
+ - 2067689: Internal updates due to `json-schema-to-ts`
16
+ - Updated dependencies
17
+ - @backstage/backend-plugin-api@0.6.10-next.0
18
+ - @backstage/errors@1.2.3
19
+
3
20
  ## 0.1.2
4
21
 
5
22
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSONSchema7, FromSchema } from 'json-schema-to-ts';
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 JSONSchema7 ? FromSchema<T[Index]> : T[Index];
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 JSONSchema7 ? FromSchema<R> : never : never : never;
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.2",
4
+ "version": "0.1.3-next.1",
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.1",
33
+ "@backstage/cli": "^0.25.2-next.1",
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.9",
40
+ "@backstage/backend-plugin-api": "^0.6.10-next.1",
41
41
  "@backstage/errors": "^1.2.3",
42
42
  "@types/express": "^4.17.6",
43
43
  "@types/express-serve-static-core": "^4.17.5",