@travetto/openapi 8.0.0-alpha.1 → 8.0.0-alpha.10

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
@@ -128,7 +128,7 @@ Usage: openapi:spec [options]
128
128
  Options:
129
129
  -o, --output <string> Output files
130
130
  -m, --module <module> Module to run for
131
- -h, --help display help for command
131
+ --help display help for command
132
132
  ```
133
133
 
134
134
  The command will run your application, in non-server mode, to collect all the endpoints and model information, to produce the `openapi.yml`. Once produced, the code will store the output in the specified location.
@@ -150,7 +150,7 @@ Options:
150
150
  -i, --input <string> Input file (default: "./openapi.yml")
151
151
  -o, --output <string> Output folder (default: "./api-client")
152
152
  -d, --docker-image <string> Docker Image to user (default: "openapitools/openapi-generator-cli:latest")
153
- -h, --help display help for command
153
+ --help display help for command
154
154
  ```
155
155
 
156
156
  This tool relies upon a custom build of [OpenAPI client generation tools](https://github.com/OpenAPITools/openapi-generator), which supports watching. This allows for fast responsive client generation as the shape of the API changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/openapi",
3
- "version": "8.0.0-alpha.1",
3
+ "version": "8.0.0-alpha.10",
4
4
  "type": "module",
5
5
  "description": "OpenAPI integration support for the Travetto framework",
6
6
  "keywords": [
@@ -27,14 +27,14 @@
27
27
  "directory": "module/openapi"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/config": "^8.0.0-alpha.1",
31
- "@travetto/schema": "^8.0.0-alpha.1",
32
- "@travetto/web": "^8.0.0-alpha.1",
30
+ "@travetto/config": "^8.0.0-alpha.9",
31
+ "@travetto/schema": "^8.0.0-alpha.9",
32
+ "@travetto/web": "^8.0.0-alpha.10",
33
33
  "openapi3-ts": "^4.5.0",
34
34
  "yaml": "^2.8.2"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^8.0.0-alpha.1"
37
+ "@travetto/cli": "^8.0.0-alpha.14"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
@@ -12,7 +12,7 @@ export class OpenApiClientHelp {
12
12
 
13
13
  static async getListOfFormats(dockerImage: string): Promise<string[]> {
14
14
  const formatCache = Runtime.toolPath('openapi-formats.json');
15
- if (!await fs.stat(formatCache).catch(() => false)) {
15
+ if (!await fs.stat(formatCache, { throwIfNoEntry: false })) {
16
16
  const { stdout } = await ExecUtil.getResult(spawn('docker', ['run', '--rm', dockerImage, 'list']));
17
17
  const lines = stdout
18
18
  .split('DOCUMENTATION')[0]