@travetto/openapi 3.2.4 → 3.2.5

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 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.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "OpenAPI integration support for the Travetto framework",
5
5
  "keywords": [
6
6
  "rest",
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@travetto/config": "^3.2.3",
30
- "@travetto/rest": "^3.2.4",
30
+ "@travetto/rest": "^3.2.5",
31
31
  "@travetto/schema": "^3.2.2",
32
32
  "@travetto/yaml": "^3.2.2",
33
- "openapi3-ts": "^3.2.0"
33
+ "openapi3-ts": "^4.1.2"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@travetto/cli": "^3.2.3",
package/src/config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ServerObject, ContactObject, LicenseObject } from 'openapi3-ts';
1
+ import type { ServerObject, ContactObject, LicenseObject } from 'openapi3-ts/oas30';
2
2
 
3
3
  import { Config } from '@travetto/config';
4
4
  import { path, RootIndex } from '@travetto/manifest';
package/src/service.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { OpenAPIObject } from 'openapi3-ts';
1
+ import type { OpenAPIObject } from 'openapi3-ts/oas31';
2
2
 
3
3
  import { ManifestUtil } from '@travetto/manifest';
4
4
  import { Injectable, Inject } from '@travetto/di';
@@ -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.spec;
28
+ const result = instance.getSpec();
29
29
 
30
30
  if (this.output === '-' || !this.output) {
31
31
  console.log!(JSON.stringify(result, null, 2));