openapi-to-effect
Advanced tools
+1
-1
| { | ||
| "name": "openapi-to-effect", | ||
| "version": "0.6.1", | ||
| "version": "0.6.2", | ||
| "license": "MPL-2.0", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/fortanix/openapi-to-effect", |
+7
-7
@@ -45,6 +45,6 @@ | ||
| ```console | ||
| npx openapi-to-effect gen ./api.json ./output --spec=./spec.ts | ||
| npx openapi-to-effect gen ./example_api.json ./output --spec=./example_spec.ts | ||
| ``` | ||
| **api.json** | ||
| **example_api.json** | ||
@@ -102,3 +102,3 @@ ```json | ||
| }, | ||
| "required": ["name", "last_logged_in", "role"] | ||
| "required": ["id", "name", "last_logged_in", "role"] | ||
| } | ||
@@ -110,3 +110,3 @@ } | ||
| **spec.ts** | ||
| **example_spec.ts** | ||
@@ -118,3 +118,3 @@ ```ts | ||
| export default { | ||
| generationMethod: { method: 'bundled', bundleName: 'fixture0' }, | ||
| generationMethod: { method: 'bundled', bundleName: 'example' }, | ||
| hooks: {}, | ||
@@ -143,3 +143,3 @@ runtime: {}, | ||
| **Output** | ||
| **output/example.ts** | ||
@@ -177,3 +177,3 @@ ```ts | ||
| export const User = S.Struct({ | ||
| id: S.optional(S.UUID), // Unique ID | ||
| id: S.UUID, // Unique ID | ||
| name: S.String, // The user's full name. | ||
@@ -180,0 +180,0 @@ last_logged_in: S.Date, // When the user last logged in. |
464165
0.01%