|
8 | 8 | "properties": { |
9 | 9 | "name": { |
10 | 10 | "type": "string", |
11 | | - "description": "Library name", |
| 11 | + "description": "The name of the project", |
12 | 12 | "$default": { |
13 | 13 | "$source": "argv", |
14 | 14 | "index": 0 |
15 | 15 | }, |
16 | | - "x-prompt": "What name would you like to use for the library?" |
| 16 | + "x-prompt": "What name would you like to use for the library? (e.g. my-api)" |
17 | 17 | }, |
18 | 18 | "directory": { |
19 | 19 | "type": "string", |
|
22 | 22 | }, |
23 | 23 | "scope": { |
24 | 24 | "type": "string", |
25 | | - "description": "Scope of the library", |
26 | | - "x-prompt": "What is the scope of the library?" |
| 25 | + "description": "The scope of the project", |
| 26 | + "x-prompt": "What is the scope of the project? (e.g. @my-org)" |
27 | 27 | }, |
28 | 28 | "spec": { |
29 | 29 | "type": "string", |
30 | 30 | "description": "Path to the OpenAPI spec file (URL or local path)", |
31 | | - "x-prompt": "What is the URL or local path to the OpenAPI spec file?" |
32 | | - }, |
33 | | - "tags": { |
34 | | - "type": "array", |
35 | | - "description": "Add tags to the library (comma-separated)", |
36 | | - "default": ["api", "openapi"], |
37 | | - "items": { |
38 | | - "type": "string" |
39 | | - } |
| 31 | + "x-prompt": "What is the path to the OpenAPI spec file? (URI or local file path)" |
40 | 32 | }, |
41 | 33 | "client": { |
42 | 34 | "type": "string", |
43 | | - "description": "Type of client to generate", |
44 | | - "default": "@hey-api/client-fetch", |
45 | | - "x-prompt": "Which client type would you like to use?" |
| 35 | + "description": "The type of client to generate (@hey-api/client-fetch, @hey-api/client-axios, etc)", |
| 36 | + "default": "@hey-api/client-fetch" |
46 | 37 | }, |
47 | 38 | "plugins": { |
48 | 39 | "type": "array", |
49 | | - "description": "Plugins to use", |
| 40 | + "description": "The plugins to be provided to @hey-api/openapi-ts", |
50 | 41 | "default": [], |
51 | 42 | "items": { |
52 | 43 | "type": "string" |
53 | 44 | } |
54 | 45 | }, |
| 46 | + "tags": { |
| 47 | + "type": "array", |
| 48 | + "description": "Add tags to the library (comma-separated)", |
| 49 | + "default": ["api", "openapi"], |
| 50 | + "items": { |
| 51 | + "type": "string" |
| 52 | + } |
| 53 | + }, |
55 | 54 | "test": { |
56 | 55 | "type": "string", |
57 | | - "description": "Test to use", |
| 56 | + "description": "The test runner to use", |
58 | 57 | "default": "none", |
59 | 58 | "enum": ["none", "vitest"] |
60 | 59 | }, |
61 | 60 | "private": { |
62 | 61 | "type": "boolean", |
63 | | - "description": "Whether to make the generated package private", |
| 62 | + "description": "Whether to make the generated package private, put false if you want to publish the package.", |
64 | 63 | "default": true |
65 | 64 | } |
66 | 65 | }, |
|
0 commit comments