🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

openapi-to-effect

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-to-effect - npm Package Compare versions

Comparing version
0.6.1
to
0.6.2
+1
-1
package.json
{
"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",

@@ -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.