swaggie 2.1.0-alpha.4 → 2.1.0-beta.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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ See the [Example section](#example) for a quick demo, or visit the full document
|
|
|
21
21
|
## Features
|
|
22
22
|
|
|
23
23
|
- Generates TypeScript code from OpenAPI 3.0, 3.1, and 3.2 specs
|
|
24
|
-
- Supports multiple HTTP client libraries out of the box: `fetch`, `axios`, `xior`, `Angular 1`, `Angular 2+`; with optional reactive layers (`swr`, `tsq`) that compose with any compatible HTTP client
|
|
24
|
+
- Supports multiple HTTP client libraries out of the box: `fetch`, `axios`, `xior`, `ky`, `Angular 1`, `Angular 2+`; with optional reactive layers (`swr`, `tsq`) that compose with any compatible HTTP client
|
|
25
25
|
- **Auto-generated mock/stub files** for Vitest and Jest — typed spies for every client method and hook, with ergonomic helpers like `mockSWR()` and `mockQuery()`
|
|
26
26
|
- Custom templates — bring your own to fit your existing codebase
|
|
27
27
|
- Supports `allOf`, `oneOf`, `anyOf`, `$ref`, nullable types, and various enum definitions
|
|
@@ -79,7 +79,7 @@ swaggie -s https://petstore3.swagger.io/api/v3/openapi.json -o ./client/petstore
|
|
|
79
79
|
-s, --src <url|path> URL or file path to the OpenAPI spec
|
|
80
80
|
-o, --out <filePath> Output file path (omit to print to stdout)
|
|
81
81
|
-b, --baseUrl <string> Base URL that will be used as a default value in the clients
|
|
82
|
-
-t, --template <string> Template to use. Single name: "axios", "fetch", "xior", "ng1", "ng2", "swr", "tsq". Reactive pair: "swr,axios" / "tsq,xior" / etc. (default: "axios")
|
|
82
|
+
-t, --template <string> Template to use. Single name: "axios", "fetch", "xior", "ky", "ng1", "ng2", "swr", "tsq". Reactive pair: "swr,axios" / "tsq,xior" / etc. (default: "axios")
|
|
83
83
|
-m, --mode <mode> Generation mode: "full" or "schemas" (default: "full")
|
|
84
84
|
-d, --schemaStyle <style> Schema object style: "interface" or "type" (default: "interface")
|
|
85
85
|
--enumStyle <style> Enum style for plain string enums: "union" or "enum" (default: "union")
|