@rxap/schematics-open-api 15.0.1 → 16.0.0-dev.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 +27 -0
- package/README.md +1 -1
- package/migration.json +1 -1
- package/package.json +6 -6
- package/src/lib/types.d.ts +3 -3
- package/src/lib/utilities/has-operation-paramters.d.ts +1 -1
- package/src/lib/utilities/has-operation-request-body.d.ts +1 -1
- package/src/lib/utilities/is-without-parameters.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [16.0.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@16.0.0-dev.0...@rxap/schematics-open-api@16.0.0-dev.1) (2023-05-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update rxap packages to 16.x.x ([f9c2263](https://gitlab.com/rxap/packages/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [16.0.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@15.0.1...@rxap/schematics-open-api@16.0.0-dev.0) (2023-05-17)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### chore
|
|
21
|
+
|
|
22
|
+
* upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/packages/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* upgrade to 16.x.x
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [15.0.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@15.0.0...@rxap/schematics-open-api@15.0.1) (2023-05-17)
|
|
7
34
|
|
|
8
35
|
|
package/README.md
CHANGED
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
# Installation
|
|
16
16
|
|
|
17
17
|
```
|
|
18
|
-
yarn add @rxap/schematics-open-api @rxap/json-schema-to-typescript@^
|
|
18
|
+
yarn add @rxap/schematics-open-api @rxap/json-schema-to-typescript@^16.0.0-dev.0 @rxap/schematics-utilities@^16.0.0-dev.0
|
|
19
19
|
```
|
|
20
20
|
|
package/migration.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/schematics-open-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-dev.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
+
"semver": "^7.3.5",
|
|
5
6
|
"tslib": "^2.3.1"
|
|
6
7
|
},
|
|
7
8
|
"schematics": "./schematics/collection.json",
|
|
@@ -37,13 +38,12 @@
|
|
|
37
38
|
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
|
-
"@angular-devkit/schematics": "^
|
|
41
|
+
"@angular-devkit/schematics": "^16.0.2",
|
|
41
42
|
"@apidevtools/json-schema-ref-parser": "^9.1.0",
|
|
42
|
-
"@rxap/json-schema-to-typescript": "^
|
|
43
|
-
"@rxap/schematics-utilities": "^
|
|
43
|
+
"@rxap/json-schema-to-typescript": "^16.0.0-dev.0",
|
|
44
|
+
"@rxap/schematics-utilities": "^16.0.0-dev.0",
|
|
44
45
|
"openapi-types": "^10.0.0",
|
|
45
|
-
"ts-morph": "^13.0.3"
|
|
46
|
-
"semver": "7.3.5"
|
|
46
|
+
"ts-morph": "^13.0.3"
|
|
47
47
|
},
|
|
48
48
|
"types": "./src/index.d.ts"
|
|
49
49
|
}
|
package/src/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
import { Project } from 'ts-morph';
|
|
3
|
-
export
|
|
3
|
+
export type OperationObject = Omit<OpenAPIV3.OperationObject, 'operationId'> & {
|
|
4
4
|
operationId: string;
|
|
5
5
|
};
|
|
6
6
|
export interface GenerateParameter<Options extends OpenApiSchemaBase = OpenApiSchemaBase> extends OperationObject {
|
|
@@ -17,7 +17,7 @@ export interface OperationObjectWithMetadata extends OpenAPIV3.OperationObject {
|
|
|
17
17
|
export declare function GenerateParameterToOperationObjectWithMetadata(parameter: GenerateParameter): OperationObjectWithMetadata;
|
|
18
18
|
export declare function HasOperationId(operation: OpenAPIV3.OperationObject): operation is OperationObject;
|
|
19
19
|
export declare function AssertWithOperationId(operation: OpenAPIV3.OperationObject): asserts operation is OperationObject;
|
|
20
|
-
export
|
|
20
|
+
export type GeneratorFunction<Options extends OpenApiSchemaBase = OpenApiSchemaBase> = (parameters: GenerateParameter<Options>) => Promise<void>;
|
|
21
21
|
export interface OpenApiSchemaBase {
|
|
22
22
|
debug?: boolean;
|
|
23
23
|
}
|
|
@@ -27,4 +27,4 @@ export interface OpenApiSchemaFromPath extends OpenApiSchemaBase {
|
|
|
27
27
|
export interface OpenApiSchemaFromUrl extends OpenApiSchemaBase {
|
|
28
28
|
url: string;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type OpenApiSchema = OpenApiSchemaFromPath | OpenApiSchemaFromUrl;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
export
|
|
2
|
+
export type OperationObjectWithParameters = Omit<OpenAPIV3.OperationObject, 'parameters'> & Required<Pick<OpenAPIV3.OperationObject, 'parameters'>>;
|
|
3
3
|
export declare function HasOperationParameters(operation: OpenAPIV3.OperationObject): operation is OperationObjectWithParameters;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
export
|
|
2
|
+
export type OperationObjectWithRequestBody = Omit<OpenAPIV3.OperationObject, 'requestBody'> & Required<Pick<OpenAPIV3.OperationObject, 'requestBody'>>;
|
|
3
3
|
export declare function HasOperationRequestBody(operation: OpenAPIV3.OperationObject): operation is OperationObjectWithRequestBody;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
export
|
|
2
|
+
export type OperationObjectWithoutParameters = Omit<OpenAPIV3.OperationObject, 'parameters'>;
|
|
3
3
|
export declare function IsWithoutParameters(operation: OpenAPIV3.OperationObject): operation is OperationObjectWithoutParameters;
|