@travetto/openapi 3.2.4 → 3.3.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/README.md +1 -1
- package/package.json +8 -8
- package/src/config.ts +1 -1
- package/src/service.ts +1 -1
- package/src/spec-generate.ts +1 -1
- package/support/cli.openapi_spec.ts +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ All of the high level configurations can be found in the following structure:
|
|
|
24
24
|
|
|
25
25
|
**Code: Config: OpenAPI Configuration**
|
|
26
26
|
```typescript
|
|
27
|
-
import type { ServerObject, ContactObject, LicenseObject } from 'openapi3-ts';
|
|
27
|
+
import type { ServerObject, ContactObject, LicenseObject } from 'openapi3-ts/oas30';
|
|
28
28
|
|
|
29
29
|
import { Config } from '@travetto/config';
|
|
30
30
|
import { path, RootIndex } from '@travetto/manifest';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/openapi",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "OpenAPI integration support for the Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rest",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"directory": "module/openapi"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/config": "^3.
|
|
30
|
-
"@travetto/rest": "^3.
|
|
31
|
-
"@travetto/schema": "^3.
|
|
32
|
-
"@travetto/yaml": "^3.
|
|
33
|
-
"openapi3-ts": "^
|
|
29
|
+
"@travetto/config": "^3.3.0",
|
|
30
|
+
"@travetto/rest": "^3.3.0",
|
|
31
|
+
"@travetto/schema": "^3.3.0",
|
|
32
|
+
"@travetto/yaml": "^3.3.0",
|
|
33
|
+
"openapi3-ts": "^4.1.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/cli": "^3.
|
|
37
|
-
"@travetto/command": "^3.
|
|
36
|
+
"@travetto/cli": "^3.3.0",
|
|
37
|
+
"@travetto/command": "^3.3.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"@travetto/cli": {
|
package/src/config.ts
CHANGED
package/src/service.ts
CHANGED
package/src/spec-generate.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Readable } from 'stream';
|
|
|
2
2
|
import type {
|
|
3
3
|
SchemaObject, SchemasObject, ParameterObject, OperationObject,
|
|
4
4
|
RequestBodyObject, TagObject, PathsObject, PathItemObject
|
|
5
|
-
} from 'openapi3-ts';
|
|
5
|
+
} from 'openapi3-ts/oas31';
|
|
6
6
|
|
|
7
7
|
import { EndpointConfig, ControllerConfig, ParamConfig, EndpointIOType, ControllerVisitor } from '@travetto/rest';
|
|
8
8
|
import { RootIndex } from '@travetto/manifest';
|
|
@@ -25,7 +25,7 @@ export class OpenApiSpecCommand implements CliCommandShape {
|
|
|
25
25
|
await RootRegistry.init();
|
|
26
26
|
|
|
27
27
|
const instance = await DependencyRegistry.getInstance(OpenApiService);
|
|
28
|
-
const result = instance.
|
|
28
|
+
const result = instance.getSpec();
|
|
29
29
|
|
|
30
30
|
if (this.output === '-' || !this.output) {
|
|
31
31
|
console.log!(JSON.stringify(result, null, 2));
|